Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6e6c65

Browse files
bborehamFabio Yeon
authored and
Fabio Yeon
committed
Correct gcloud list arg from '--zone' to '--zones'
`--zone` was accepted as an abbreviation but is now deprecated and will be disabled entirely in gcloud 132.0.0.
1 parent 2601926 commit e6e6c65

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cluster/gce/list-resources.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ echo "Provider: ${KUBERNETES_PROVIDER:-}"
7474
# List resources related to instances, filtering by the instance prefix if
7575
# provided.
7676
gcloud-compute-list instance-templates --regexp="${INSTANCE_PREFIX}.*"
77-
gcloud-compute-list instance-groups ${ZONE:+"--zone=${ZONE}"} --regexp="${INSTANCE_PREFIX}.*"
78-
gcloud-compute-list instances ${ZONE:+"--zone=${ZONE}"} --regexp="${INSTANCE_PREFIX}.*"
77+
gcloud-compute-list instance-groups ${ZONE:+"--zones=${ZONE}"} --regexp="${INSTANCE_PREFIX}.*"
78+
gcloud-compute-list instances ${ZONE:+"--zones=${ZONE}"} --regexp="${INSTANCE_PREFIX}.*"
7979

8080
# List disk resources, filterying by instance prefix if provided.
81-
gcloud-compute-list disks ${ZONE:+"--zone=${ZONE}"} --regexp="${INSTANCE_PREFIX}.*"
81+
gcloud-compute-list disks ${ZONE:+"--zones=${ZONE}"} --regexp="${INSTANCE_PREFIX}.*"
8282

8383
# List network resources. We include names starting with "a", corresponding to
8484
# those that Kubernetes creates.

cluster/gce/upgrade.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ function do-node-upgrade() {
250250
for group in ${INSTANCE_GROUPS[@]}; do
251251
old_templates+=($(gcloud compute instance-groups managed list \
252252
--project="${PROJECT}" \
253-
--zone="${ZONE}" \
253+
--zones="${ZONE}" \
254254
--regexp="${group}" \
255255
--format='value(instanceTemplate)' || true))
256256
update=$(gcloud alpha compute rolling-updates \

0 commit comments

Comments
 (0)