-
Notifications
You must be signed in to change notification settings - Fork 0
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
Some elements are not deleted after gitops prune deletes cluster app #3603
Comments
It looks like the old bug we had before adding the |
command used to deploy kustomization: |
After some tests these are the findings:
|
👋 this seems like issue for @giantswarm/team-honeybadger - seems deleting the kustomization with organization break WC clusters deletion within the organization, where the kubeconfig secret is deleted out of order causing issues. |
I'm hitting this issues as well. I do need a way to reliably delete clusters. @giantswarm/team-honeybadger |
The question of a reliable way of deleting cluster has already been sort of answered by you, I think. Basically, to delete a cluster, the deletion operation should be about the cluster itself, so please follow either the 1st or the 2nd scenario listed by @carillan81 here. When you do bulk resources deletion, including the namespace these resources reside in, you do not experience any special behaviour of Flux, like more aggressive cleanup, but rather a standard Kubernetes routine. You tell Kubernetes to delete a namespace, so it deletes resources inside, including the kubeconfig Secret the CAPI controllers rely upon for their operations. You would get exactly the same result with any tool, including the |
To reproduce the issue:
prune: true
should delete the org, the apps and the wcIt looks like the kustomization is triggering deletion in a specific order that is making some of the elements fail to delete.
From the
kubeadm-control-plane-controller-manager
log:example being deployed in golem from:
https://github.com/giantswarm/presales-demo-gitops/tree/main
The text was updated successfully, but these errors were encountered: