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

[FEAT] Prometheus Adapter reload #2195

Merged

Conversation

ritaCanavarro
Copy link
Contributor

@ritaCanavarro ritaCanavarro commented Aug 22, 2023

Description

This PR aims to add a reload mechanism in Prometheus Adapter deployment every time its ConfigMap changes, as suggested in this issue #302.

Type of change

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Changelog entry

Adds a reload mechanism in Prometheus Adapter deployment based on ConfigMap changes.


- Add md5 hash of the ConfigMap in Prometheus Adapter Deployment Annotations to force its recreation based on changes in the ConfigMap.

rita.canavarro added 2 commits August 22, 2023 09:29
Signed-off-by: rita.canavarro <ritinhamcm@gmail.com>
Signed-off-by: rita.canavarro <ritinhamcm@gmail.com>
@ritaCanavarro ritaCanavarro changed the title WIP: [FEAT] Prometheus Adapter reload [FEAT] Prometheus Adapter reload Aug 22, 2023
@philipgough
Copy link
Contributor

Add md5 hash of the ConfigMap but this annotation appears to be on the Deployment itself?

@ritaCanavarro
Copy link
Contributor Author

@philipgough this annotation will force the Deployment pods to recreate when the md5 hash of the configMap changes. It is the strategy I use nowadays and what I also understood from this comment: #302 (comment). However, I might have misunderstood so could you please elaborate?

@philipgough
Copy link
Contributor

@ritaCanavarro no sorry I misunderstood so my bad. That makes sense now. Thanks

@philipgough philipgough merged commit 84c295f into prometheus-operator:main Aug 23, 2023
@ritaCanavarro ritaCanavarro deleted the prometheusAdapterReload branch August 23, 2023 10:37
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.

2 participants