Open gsantopaolo opened 2 months ago
Need to be clarified :
What user role will have ability to call configmap endpoints ? ( in current implementation all users that registered in cognix have role admin for they tenant ) We do not have any user that have permission for configure working environment.
For applying changes in configmap we need to restart containers that depends on this changes. I need research time or instruction how I can do that from inside of pod ( I hope this package provide this ability https://github.com/kubernetes/client-go) and from docker container ( I need time for research )
Do you need to have a separate one container for management k8s and docker or do implement this functionality in api container ?
According to figma design is not clear what configMap ( or .env file) we should manage. curently we use several configMaps for different services. ?
@gsantopaolo
@gsantopaolo
implement new container for edit .env files in docker-compose environment . edit configMap in k8s cluster
endpoints [GET] /api/config-map/{filename} - return content of config map [POST] /api/config-map/{filename} - add or update key - value pair in configmap [DELETE] / api/config-map/{filename}/{key} - remove key- value pair from configmap.
Estimation time : 16 - 20 hours
config map shall be implemented server side
If you deen you can contact Noel for k8/config map