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

Make it possible to annotate Prometheus operator CRDs #136

Open
AndersBennedsgaard opened this issue Nov 8, 2023 · 1 comment
Open

Make it possible to annotate Prometheus operator CRDs #136

AndersBennedsgaard opened this issue Nov 8, 2023 · 1 comment

Comments

@AndersBennedsgaard
Copy link
Contributor

I would like to be able to add the helm.sh/resource-policy=keep annotation to all the CRDs coming from the Prometheus operator, to ensure minimal probability of having the CRDs being deleted during operations.
It should be possible to add arbitrary annotations/labels to the CRD

@langecode
Copy link
Member

I see your point as the state of Prometheus instances might be lost if removal of CRDs causes Prometheus instances to be removed. However, using the Helm crd management functionality I do not think this is possible. Helm wont do any templating for the resources in the crds folder. If using Flux there is a post processing feature that might be able to handle this.

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

No branches or pull requests

2 participants