Closed reysonbarros closed 4 months ago
This is working as designed. The delete call is idempotent, so you should be able to call it many times without it failing.
This of it more as saying "I don't want cluster X to exist" and kind making sure that it does not. If it didn't exist in the first place, there's just less work that kind needs to do to match the requested state.
/close
@stmcginnis: Closing this issue.
(think of this like rm -f
, changing it now would be a breaking change to a lot of best-practices scripts that ensure cleanup on exit, versus we already log the actual actions taken so interactive users can tell if anything was done or not)
What happened:
If deleting a non-existent cluster, kind shows up a message saying that the cluster was deleted.
What you expected to happen: Kind should thrown a message saying that the cluster does not exist
How to reproduce it (as minimally and precisely as possible): kind create cluster --name test kind delete cluster --name test1 Deleting cluster "test1" ... kind delete clusters test1 Deleted clusters: ["test1"] Anything else we need to know?: No Environment:
kind version
): kind version 0.20.0docker info
,podman info
ornerdctl info
): Docker version 26.1.3, build b72abbb/etc/os-release
): NAME="Ubuntu" VERSION="20.04.6 LTS (Focal Fossa)" PRETTY_NAME="Ubuntu 20.04.6 LTS" VERSION_ID="20.04"kubectl version
): Client Version: v1.28.2