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

Added checksums to configmaps to enable pod restart on configmap change. #18611

Merged
merged 7 commits into from
Dec 14, 2020
Merged

Added checksums to configmaps to enable pod restart on configmap change. #18611

merged 7 commits into from
Dec 14, 2020

Conversation

cccs-eric
Copy link
Contributor

@cccs-eric cccs-eric commented Dec 14, 2020

What does this PR do?

Currently when you modify the configmap (like adding a new env variable), or change the value of an env variable (change the value in a values.yaml), the pod will not be restarted and you have to manually do a rollout restart. This can introduce a configuration mismatch and it is not in line with k8s/helm philosophy. A change in the config should automatically issue a restart.

This PR adds a checksum value in an annotation so that if the configmap changes, the spec of the pod will also change and k8s will trigger a restart. This is a documented way (see Automatically Roll Deployments section) of fixing that issue.

What issues does this PR fix or reference?

Fixes the issue reverted by this PR: #18603

How to test this PR?

Using the helm installer, simply change a value that is used in the configmap and the che pod (or the plugin/devfile registries) should restart.

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

cccs-eric and others added 7 commits December 1, 2020 14:18
Added support to change endpoint-watcher image

Signed-off-by: Eric Ladouceur <eric.ladouceur@cyber.gc.ca>
Signed-off-by: Eric Ladouceur <eric.ladouceur@cyber.gc.ca>
Signed-off-by: Eric Ladouceur <eric.ladouceur@cyber.gc.ca>

Co-authored-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Eric Ladouceur <eric.ladouceur@cyber.gc.ca>

Co-authored-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: cccs-eric <eric.ladouceur@cyber.gc.ca>
@che-bot
Copy link
Contributor

che-bot commented Dec 14, 2020

Can one of the admins verify this patch?

1 similar comment
@che-bot
Copy link
Contributor

che-bot commented Dec 14, 2020

Can one of the admins verify this patch?

@che-bot che-bot added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. kind/enhancement A feature request - must adhere to the feature request template. labels Dec 14, 2020
@cccs-eric
Copy link
Contributor Author

@tolusha
This PR will only fix che's configmap, the plugin and devfile registries will be fixed in my other PR: #18562

@tolusha tolusha merged commit 1a7bfa8 into eclipse-che:master Dec 14, 2020
@che-bot che-bot removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Dec 14, 2020
@cccs-eric cccs-eric deleted the che-configmap-checksum branch December 14, 2020 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants