-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating a project's environment variables doesn't actually update those variables within running containers #1728
Comments
I don't think we want to automatically redeploy the containers if an environment variable is added. As this could cause two possible issues:
Therefore I would still keep the requirement that when an environment variable is updated during the next deployment (either triggered via push or manually via API/UI) the deployment system checks if the environment variables have been changed and then triggers a redeploy of all containers. |
@Schnitzel |
@AlexSkrypnyk
Therefore:
a) force a change in the docker images (add a new file, change a file, etc. - just an empty commit might not cause a new docker image as the A) and B) are preferred solutions. |
This issue has bitten a large customer in region, and I would be a fan of seeing this prioritised. I like the idea of storing a hash of the config map, and then redeploying all pods if the hash changes on the next deploy. |
Describe the bug
Whenever an environment variable is created or updated within a project, any running pods are not redeployed. This is due to the fact that the env vars are changed in the
lagoon-env
configmap, which is referenced by the pod. Since this configmap is not actually a part of the pod that's changing, the pod hasn't actually changed and isn't redeployed as a result.To Reproduce
Steps to reproduce the behavior:
global
scopeExpected behavior
When environment variables are updated, containers should be redeployed accordingly to reflect any updates to those variables.
The text was updated successfully, but these errors were encountered: