-
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
Do not delete PrometheusRule when using tools like Pulumi to manage the Helm chart #8902
Conversation
|
@Bazze: This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The 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/test-infra repository. |
Welcome @Bazze! |
Hi @Bazze. 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/test-infra repository. |
Any cane you can copy/paste 2 editions of the entire related state. Not sure if it is too much ask but there is not enough information here for reviewers to look at and the project is not having enough resources to reproduce and check this change |
@longwuyuan The change is really exactly the same as discussed in #7829. That PR concerns issues using Kustomize, while we are using Pulumi and observed the very same behaviour. The ServiceMonitor, which since that PR does not have this extra condition, is working perfectly fine but this PrometheusRule for some reason still has this condition in place. I don't think I'll be able to provide the state comparisons you're asking for, to be honest not really sure exactly what you're asking for. (I mostly only interact with kubernetes via Pulumi 😬) For now, as a workaround, we've just declared a custom resource in Pulumi that matches the name of the PrometheusRule that was created in the earlier version of the chart and map it with an alias to ensure it's not deleted. |
understood. /ok-to-test |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
Can this be merged? |
@longwuyuan should this be merged? |
@longwuyuan can you check this one please? :) |
@matanbaruch @Bazze , thanks for the contribution. But since the proposed change is just a if condition to check, a-la #7829, I think there is no negative impact in merging this change, since it benefits the corner case of Pulumi like use-case. /lgtm cc @rikatz my opinion is that there is no negative impact |
@Bazze 2 tests are skipped. Kindly check if you need to rebase. |
/lifecycle active |
As fixed in pull request kubernetes#7829 for the ServiceMonitor resource, this is also needed for the PrometheusRule. When upgrading the ingress-nginx chart in our environment (via Pulumi) from a really old version to the latest (4.2.0) we noticed it wanted to delete the PrometheusRule resource. This PR should fix that.
Rebase done ✅ |
/lgtm cc @rikatz, I think this is ready |
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.
/approve
/lgtm
/hold for @rikatz
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Bazze, cpanato, longwuyuan 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 |
Bump :) |
/hold cancel |
What this PR does / why we need it:
When upgrading the ingress-nginx chart in our environment (via Pulumi) from a really old version to the latest (4.2.0) we noticed it wanted to delete the PrometheusRule resource.
As fixed in pull request #7829 for the ServiceMonitor resource, this is also needed for the PrometheusRule.
Types of changes
Which issue/s this PR fixes
N/A
How Has This Been Tested?
N/A
Checklist: