mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Merge pull request #33039 from colhom/fix-bad-var-name-gce
Automatic merge from submit-queue gce/util: $replica-pd --> $replica_pd \cc @quinton-hoole @madhusudancs fixes #32997
This commit is contained in:
commit
01dd125b60
@ -1191,13 +1191,13 @@ function kube-down() {
|
||||
|
||||
# Delete the master replica pd (possibly leaked by kube-up if master create failed).
|
||||
# TODO(jszczepkowski): remove also possibly leaked replicas' pds
|
||||
local -r replica-pd="${REPLICA_NAME:-${MASTER_NAME}}-pd"
|
||||
if gcloud compute disks describe "${replica-pd}" --zone "${ZONE}" --project "${PROJECT}" &>/dev/null; then
|
||||
local -r replica_pd="${REPLICA_NAME:-${MASTER_NAME}}-pd"
|
||||
if gcloud compute disks describe "${replica_pd}" --zone "${ZONE}" --project "${PROJECT}" &>/dev/null; then
|
||||
gcloud compute disks delete \
|
||||
--project "${PROJECT}" \
|
||||
--quiet \
|
||||
--zone "${ZONE}" \
|
||||
"${replica-pd}"
|
||||
"${replica_pd}"
|
||||
fi
|
||||
|
||||
# Delete disk for cluster registry if enabled
|
||||
|
Loading…
Reference in New Issue
Block a user