mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
Only delete GKE clusters that exist
This commit is contained in:
parent
deadea91dc
commit
9feafda475
@ -401,6 +401,8 @@ function test-teardown() {
|
|||||||
function kube-down() {
|
function kube-down() {
|
||||||
echo "... in gke:kube-down()" >&2
|
echo "... in gke:kube-down()" >&2
|
||||||
detect-project >&2
|
detect-project >&2
|
||||||
"${GCLOUD}" ${CMD_GROUP:-} container clusters delete --project="${PROJECT}" \
|
if "${GCLOUD}" ${CMD_GROUP:-} container clusters describe --project="${PROJECT}" --zone="${ZONE}" "${CLUSER_NAME}" --quiet &>/dev/null; then
|
||||||
--zone="${ZONE}" "${CLUSTER_NAME}" --quiet
|
"${GCLOUD}" ${CMD_GROUP:-} container clusters delete --project="${PROJECT}" \
|
||||||
|
--zone="${ZONE}" "${CLUSTER_NAME}" --quiet
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user