mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-27 13:15:36 +00:00
Fix gcloud compute instance-groups managed list
call
This commit is contained in:
@@ -336,7 +336,7 @@ function detect-node-names() {
|
|||||||
INSTANCE_GROUPS+=($(gcloud compute instance-groups managed list \
|
INSTANCE_GROUPS+=($(gcloud compute instance-groups managed list \
|
||||||
--zones "${ZONE}" --project "${PROJECT}" \
|
--zones "${ZONE}" --project "${PROJECT}" \
|
||||||
--regexp "${NODE_INSTANCE_PREFIX}-.+" \
|
--regexp "${NODE_INSTANCE_PREFIX}-.+" \
|
||||||
--format='value(instanceGroup)' || true))
|
--format='value(name)' || true))
|
||||||
NODE_NAMES=()
|
NODE_NAMES=()
|
||||||
if [[ -n "${INSTANCE_GROUPS[@]:-}" ]]; then
|
if [[ -n "${INSTANCE_GROUPS[@]:-}" ]]; then
|
||||||
for group in "${INSTANCE_GROUPS[@]}"; do
|
for group in "${INSTANCE_GROUPS[@]}"; do
|
||||||
|
Reference in New Issue
Block a user