I have a Rest API in Python that has several Configuration variables that are setup at startup time.
This variables are read from the environment variables of the host machine.
Our production environmant is on a kubernetes cluster that is deployed with github actions and a helm chart.
The problem I have is that whenever a new config variable is added. I have to add it in 3 places.
- On the actual python application code
- On the helm chart's
- On the github secrets of the repo so that during the deployment it sets the
values.yamlwith the value of the secret.
How to manage it and make this process a bit less error prone? Since now it's very likely that somebody forgest to add the new config on any of the above 3 places and break the deploy pipeline.