-
Notifications
You must be signed in to change notification settings - Fork 1.6k
🐛 (go/v4)(fix): (e2e) delete CertManager leftover leases in kube-system (not cleaned by default) #4949
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
🐛 (go/v4)(fix): (e2e) delete CertManager leftover leases in kube-system (not cleaned by default) #4949
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86 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 |
|
Here is the fix for the issue that you opened !!! |
Hi @camilamacedo86, thank you for this! I haven't touched the relevant part of the tests so didn't have any feedback for you, sorry about that. However, looking at the PR code I don't see any mention of the Bear in mind that deleting the |
|
/hold |
83e48c9 to
7071752
Compare
7071752 to
4b23466
Compare
|
/hold cancel |
erikgb
left a comment
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.
I don't understand why you're rewriting the uninstall. Shouldn't the change just be to add the cleanup of leases in kube-system namespace? Reversing the installation procedure with kubectl delete should work except from this.
Hi @erikgb My motivation was to cover all: https://cert-manager.io/docs/installation/kubectl/#uninstalling However, keep it as before, with only the specific caveat that it would be a less verbose, cleaner solution. |
Your current approach will make this more fragile to future changes in cert-manager. So I would recommend to just do the fix for leases. |
4b23466 to
8dc1b78
Compare
|
Hi @erikgb Thank you for the amazing help |
erikgb
left a comment
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
🚀
Closes: #4712
c/c @wallrj @erikgb @mahmoudhossam