mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Merge pull request #35167 from fejta/err
Automatic merge from submit-queue Only delete GKE clusters that exist This matches the gce pattern: https://github.com/kubernetes/kubernetes/blob/master/cluster/gce/util.sh#L1197
This commit is contained in:
commit
729e4484a2
@ -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
|
||||||
|
if "${GCLOUD}" ${CMD_GROUP:-} container clusters describe --project="${PROJECT}" --zone="${ZONE}" "${CLUSER_NAME}" --quiet &>/dev/null; then
|
||||||
"${GCLOUD}" ${CMD_GROUP:-} container clusters delete --project="${PROJECT}" \
|
"${GCLOUD}" ${CMD_GROUP:-} container clusters delete --project="${PROJECT}" \
|
||||||
--zone="${ZONE}" "${CLUSTER_NAME}" --quiet
|
--zone="${ZONE}" "${CLUSTER_NAME}" --quiet
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user