-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Chart: Add controller.metrics.prometheusRule.annotations
.
#11849
Conversation
Welcome @adberger! |
Hi @adberger. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
✅ Deploy Preview for kubernetes-ingress-nginx canceled.
|
What, if any, is the requirement for maintenance & support on this new ArgoCD annotation (and also the other ArgoCD annotation you mentioned). |
Also, any improved way to show this text from here in the README for the chart or the values file
Folks may need to hunt down this PR to understand what the key is for |
What do you mean by: "requirement for maintenance & support"? The changes I've contributed can't just be used for ArgoCD but for anyone who wishes to annotate the PrometheusRule in any way. |
This and the other key seems to only facilitate ArgoCD integration, while not appearing to be explicitly so, just looking at the code changes. So wondering what non ArgoCD-users get out of both of these changes. I love ArgoCD to death so please do not misunderstand. These comments and questions are to get explicit info here, in the context that the project is trying to remove less used features (sort of). For example it would be so lovely to integrate with external-dns but that kind of thinking has resulting in some bad status. |
To state precisely, the non-ArgoCD-userbase has not posted multiple issues or PRs related to annotation the serviceMonitor or the promtheusRule. While I myself would love to use this key, the point I am trying to make here is your justification is not rooted in a Ingress-API spec or similar core & pervasive need. You will install this controller before prometheus-stack so you are proposing change to the this controller chart to keep your ArgoCD happy. It does not look like that from the code but it also does nothing for the someone who installs this controller AFTER prometheus. I am not contending and actually @Gacko reviews chart related PRs. I am not even a developer. But here is an example of how I do it for local environments
|
First of all, thank you for taking your time to review and describing your concerns. Argo CD has multiple scenarios where annotations come in handy and heavily relies on them: https://argo-cd.readthedocs.io/en/stable/user-guide/annotations-and-labels/#annotations But not just Argo CD, Flux (the other GitOps solution for Kubernetes) also uses them, one example would be: https://fluxcd.io/flux/components/kustomize/kustomizations/#prune There are probably many other use cases, that's what annotations were created for. I don't see it as my responsibility to look for or give further examples on why the option to set annotations on any resource could be helpful. The proposal of yours is as you correctly stated for local environments. |
@adberger thank you for the updates and comments. Thank you for looking at improving the chart. @Gacko its just my opinion that adding this kind of integration support, that too for local environments, is not the direction discussed. My opinion is to consider NOT to merge this, even though it seems to add a functionality. Folks can simply deploy prometheus before the controller for the desired goal here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/triage accepted
/kind feature
/priority backlog
/hold
Basically looks good to me, but it's missing tests and documentation. Also we could add them for the service monitor annotations. I'll provide them later.
controller.metrics.prometheusRule.annotations
.
5065ac1
to
e84a8b6
Compare
I prepared a PR to add tests for the existing ServiceMonitor and PrometheusRule: #11883 Once this got merged, we can rebase and merge your PR. |
/ok-to-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adberger, Gacko The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/unhold |
What this PR does / why we need it:
I need the following annotation when ingress-nginx is installed before prometheus-stack:
Ref: https://argo-cd.readthedocs.io/en/stable/user-guide/sync-options/#skip-dry-run-for-new-custom-resources-types
Same as here but for PrometheusRule instead of ServiceMonitor: #9677
Types of changes
Which issue/s this PR fixes
How Has This Been Tested?
Checklist: