-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fix finalizers preventing namespace deletion #391
Conversation
This looks good. Getting an edge cluster to uninstall cleanly will be less straightforward as there are multiple charts involved, but making the I presume you've tested that Helm is willing to run a When it comes to the LocalSecret resources you may run into an issue as this CRD is not yet installed onto the central cluster. Probably the best way forward is to make sure it is; copy the CRD from |
I didn't notice any issues with the local secret resource,. Do you think its worth copying across anyway? |
edge-helm-charts/charts/edge-cluster/templates/post-delete.yaml
Outdated
Show resolved
Hide resolved
edge-helm-charts/charts/edge-cluster/templates/post-delete.yaml
Outdated
Show resolved
Hide resolved
I've moved the edge cluster conversations into a new ticket on our internal Jira. Ideally this would be rebased onto |
When deleting the factory-plus namespace, finalizers prevented its deletion. This post delete job removes the finalizers to fix this issue.
4e5c73c
to
d0caac0
Compare
d0caac0
to
7d8986a
Compare
Finalizers on custom resource definitions cause both the factory-plus namespace to be stuck in a terminating state. The added job runs on the helm post delete hook and patches the Kerberos Key to remove the finalizers.
How to test
Helm uninstall acs -n factory-plus
.kubectl delete namesapce factory-plus
to delete the factory-plus namespace.