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

[prometheus-json-exporter] Automatically rollover deployment when configmap changed. #2831

Merged

Conversation

stefanandres
Copy link
Contributor

What this PR does / why we need it

Add annotation to deployment to auto rollover the deployment on changes to the configmap
(https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments)

Which issue this PR fixes

Currently you need to manually delete the pod to get the new config from the configmap.

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

zanhsieh
zanhsieh previously approved these changes Dec 20, 2022
@stefanandres
Copy link
Contributor Author

Sorry, I wrongly rebased the branch, it's up2date now again.

Copy link
Member

@monotek monotek left a comment

Choose a reason for hiding this comment

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

.

Copy link
Member

@monotek monotek left a comment

Choose a reason for hiding this comment

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

could you please rebase again?
ci sees still the old version.

@stefanandres stefanandres force-pushed the json-exporter-rollover-deployment branch from 6858dc3 to 8258df5 Compare December 22, 2022 08:55
Copy link
Member

@monotek monotek left a comment

Choose a reason for hiding this comment

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

chart version needs to be updated, not the appversion

Add annotation to deployment to auto rollover the deployment on changes
to the configmap
(https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments)

Signed-off-by: Stefan Andres <s.andres@syseleven.de>
@stefanandres stefanandres force-pushed the json-exporter-rollover-deployment branch from 9870070 to 9518805 Compare December 22, 2022 09:23
@stefanandres
Copy link
Contributor Author

chart version needs to be updated, not the appversion

Yeah, that got mixed up the the bogus rebase in the beginning. I hope it's done now, since the Chart is now also 0.6 and not 0.5 anymore ;)

@monotek monotek merged commit 95bcf1f into prometheus-community:main Dec 22, 2022
cx-asafd pushed a commit to CheckmarxDev/prometheus-helm-charts that referenced this pull request Dec 29, 2022
…-community#2831)

Add annotation to deployment to auto rollover the deployment on changes
to the configmap
(https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments)

Signed-off-by: Stefan Andres <s.andres@syseleven.de>

Signed-off-by: Stefan Andres <s.andres@syseleven.de>
Matiasmct pushed a commit to giffgaff/prometheus-charts-backup that referenced this pull request May 16, 2023
…-community#2831)

Add annotation to deployment to auto rollover the deployment on changes
to the configmap
(https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments)

Signed-off-by: Stefan Andres <s.andres@syseleven.de>

Signed-off-by: Stefan Andres <s.andres@syseleven.de>
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.

3 participants