Want option for kind delete cluster
to not update kubeconfig
#3781
Labels
kind/bug
Categorizes issue or PR as related to a bug.
kind/feature
Categorizes issue or PR as related to a new feature.
What would you like to be added:
I would like an option on the
kind delete cluster
command to skip any updates to the kubeconfig.Why is this needed:
I want to delete multiple clusters concurrently. When I try it (see kubestellar/kubestellar#2558 (comment); I used kind v0.22.0 go1.22.0 darwin/arm64), the clusters get deleted but all but one of the
kind
commands fail because the succeeding one is holding the kubeconfig lock file.I can
kubectl config delete-context
myself. Or, in the case just referenced, not even care because a subsequentkind create cluster
is going to write the context.Another way to solve my problem would be for
kind delete cluster
to have a wait-and-retry loop around acquiring that kubeconfig lock.Another way to solve my problem would be for
kind create cluster
to have an option to overwrite the pre-existing cluster of the right name if it happens to already exist. In other words, an option onkind create cluster
that means "firstkind delete cluster
(but do not bother with the kubeconfig update) if the given cluster already exists". In still other words, an option that indicates that I want a freshly created cluster with the given name regardless of whether there was already an eixsting cluster with that name.The text was updated successfully, but these errors were encountered: