Skip to content
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

Redeploy pods if the ConfigMap changes #1923

Merged

Conversation

shreddedbacon
Copy link
Member

@shreddedbacon shreddedbacon commented May 29, 2020

Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated
  • PR title is ready for changelog and subsystem label(s) applied

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.

This injects an annotation lagoon.sh/config_map_sha into every deployment with the sha256sum of the configmap, if it changes it will trigger the deployment to perform a rollout.

Closing issues

closes #1728

@shreddedbacon shreddedbacon added the 2-build-deploy Build & Deploy subsystem label May 29, 2020
@shreddedbacon shreddedbacon added this to the v1.6.0 milestone May 29, 2020
@Schnitzel Schnitzel merged commit 4aa1167 into uselagoon:master May 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2-build-deploy Build & Deploy subsystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updating a project's environment variables doesn't actually update those variables within running containers
2 participants