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

CSPL-465: Fix the updation of ConfigMap by adding resource version of ConfigMap as annotation in the CR #131

Merged
merged 7 commits into from
Oct 2, 2020

Conversation

gaurav-splunk
Copy link
Collaborator

This PR fixes the case where if we try to update the defaults section in a CR thereby updating the default ConfigMap, pod should detect that change and should recycle so that it can come up with new configs. We solve this by annotating the CR with the Resource Version of the default ConfigMap. Any change in ConfigMap would lead to a new Resouce Version, thereby changing the pod template spec and hence resulting in the recycling of pod to pick up the latest changes.

pkg/splunk/enterprise/util.go Outdated Show resolved Hide resolved
pkg/splunk/enterprise/configuration.go Outdated Show resolved Hide resolved
pkg/splunk/enterprise/configuration.go Outdated Show resolved Hide resolved
pkg/splunk/enterprise/configuration.go Show resolved Hide resolved
pkg/splunk/enterprise/configuration.go Outdated Show resolved Hide resolved
pkg/splunk/controller/configmap.go Show resolved Hide resolved
@gaurav-splunk gaurav-splunk merged commit 96067e7 into develop Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants