-
Notifications
You must be signed in to change notification settings - Fork 323
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
Delete Consul custom resources with consul-k8s uninstall
#1623
Conversation
ffed653
to
3f87f85
Compare
8262db7
to
8e0956e
Compare
2318167
to
a2ea1f0
Compare
744f53c
to
88e4c2c
Compare
60ba1bf
to
bdd714d
Compare
daac0e9
to
536f034
Compare
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.
nice work. I have some nits and just the mention of those two remaining uninstall tests that should validate the new output. approving and will let you figure that all out. 🎉
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.
Great work on this, Thomas! I'm leaving some comments in-line, but I don't think they are too significant. Good work!
1f36db0
to
56fdd07
Compare
3729d56
to
8569563
Compare
d493798
to
168450c
Compare
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.
Great work!
Changes proposed in this PR
How I've tested this PR
There is a case that this does not cover, but I feel it is too much of an edge case to go after. That is, the user deploys Consul with a controller, the user manually deletes the controller deployment. The user does not delete the
mutatingwebhookconfiguration
for the controller. This will cause the uninstall request to fail. If the user deletesmutatingwebhookconfiguration
for the controller, uninstall will succeed.How I expect reviewers to test this PR:
A good, simple run manual test is
Deploy Consul with this configuration:
Then create a resource that will create a custom resource:
Then perform
consul-k8s uninstall
using this branch's CLI.Checklist