Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ad_to_mo_sync): [#48311] template environment variables directly
Previously, environment variables were templated into a ConfigMap which was referenced through an `envFrom` in the deployment. Unfortunately, Kubernetes does not restart deployments on changes to their referenced ConfigMaps[1], so this indirection means that deployments have to be restarted manually every time a change is made - something that is very easy to forget in an otherwise GitOpsy workflow. The `environment_containing_json` does not seem to serve any purpose, but was probably copied from an old method of templating the ConfigMap using a for-loop instead of `toYaml`. [1] kubernetes/kubernetes#22368
- Loading branch information