-
Notifications
You must be signed in to change notification settings - Fork 1.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
Option to delete user and cluster used by context when deleteing it #202
Comments
Sadly kubectl doesn’t provide clean cmds to delete user and cluster entries. I have an issue open about this for a long while. Since we don’t directly manipulate the kubeconfig file, it doesn’t seem currently doable. But we can get to it. |
This seems to be possible now: https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/ |
Is there still interest in this from the project authors? (@ahmetb) Also: how would you like to see this being supported?
And also: need to consider that the deleted context's cluster/user might still be referenced in other contexts that are still there. In such case, it would be safer to avoid deleting the cluster/user, but possibly provide a way to force the deletion (e.g., I personally am more fond of |
Yeah, I think we can add I recommend adding this feature only to the Go implementation for the sake of simplicity. |
For my use case, using
-d
is super annoying, as~/.kube/config
file are left with defunkt entries from previously created clusters.I'd like to request an option to delete user and cluster used by context when deleting it.
The text was updated successfully, but these errors were encountered: