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

[bitnami/thanos] Fine-granted checksum calculation for deployment re-trigger #24014

Merged
merged 3 commits into from
Mar 15, 2024

Conversation

jkroepke
Copy link
Contributor

@jkroepke jkroepke commented Mar 1, 2024

Description of the change

This PR changes the the input of the config checksum which triggers the reload.

The whole configmaps and secrets are included as checksum input. The configmap and secrets contains labels which includes the helm chart version. Each new helm chart version forces a pod restart which is not always necessary.

The PR extracts the config to template helper. which can be used as input for the checksum.

Benefits

Avoid unnecessary pod restart on each helm chart version. This can be cause a lot of trouble on upgrade paths, where the helm chart version was bumped, but there was no need for an restart.

Possible drawbacks

N/A

Applicable issues

  • fixes #

Additional information

Checklist

  • Chart version bumped in Chart.yaml according to semver. This is not necessary when the changes only affect README.md files.
  • Variables are documented in the values.yaml and added to the README.md using readme-generator-for-helm
  • Title of the pull request follows this pattern [bitnami/<name_of_the_chart>] Descriptive title
  • All commits signed off and in agreement of Developer Certificate of Origin (DCO)

@github-actions github-actions bot added thanos triage Triage is needed labels Mar 1, 2024
@github-actions github-actions bot requested a review from javsalgar March 1, 2024 23:15
…trigger

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
@carrodher carrodher added verify Execute verification workflow for these changes in-progress labels Mar 3, 2024
@github-actions github-actions bot removed the triage Triage is needed label Mar 3, 2024
@github-actions github-actions bot removed the request for review from javsalgar March 3, 2024 09:27
@github-actions github-actions bot requested a review from migruiz4 March 3, 2024 09:27
jkroepke and others added 2 commits March 10, 2024 16:27
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Miguel Ruiz <miruiz@vmware.com>
Copy link
Member

@migruiz4 migruiz4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great contribution @jkroepke, looks good to me!

@migruiz4 migruiz4 merged commit 7469e43 into bitnami:main Mar 15, 2024
7 checks passed
@jkroepke jkroepke deleted the checksum branch March 15, 2024 16:21
djjudas21 pushed a commit to djjudas21/bitnami-charts that referenced this pull request Apr 17, 2024
…trigger (bitnami#24014)

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Miguel Ruiz <miruiz@vmware.com>
Co-authored-by: Miguel Ruiz <miruiz@vmware.com>
Signed-off-by: Jonathan Gazeley <me@jonathangazeley.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved thanos verify Execute verification workflow for these changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants