mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Fix gcloud compute instance-groups managed list
call
This commit is contained in:
parent
b8fde17fc2
commit
0d1055213d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user