mirror of https://github.com/k3s-io/k3s
Merge pull request #51471 from ixdy/gcloud-compute-managed-list
Automatic merge from submit-queue (batch tested with PRs 51471, 50561, 50435, 51473, 51436) Fix `gcloud compute instance-groups managed list` call **What this PR does / why we need it**: gcloud 168.0.0 makes the `gcloud compute instance-groups managed list --format='value(instanceGroup)'` call return a URL instead of just the name, which is causing `list-instances` to fail. Switching to `--format='value(name)'` seems to restore the old behavior. x-ref #49673 **Release note**: ```release-note NONE ``` /cc @wojtek-t @mwielgus @shyamjvs @jiayingz @mindprincepull/6/head
commit
83bff8df0b
|
@ -336,7 +336,7 @@ function detect-node-names() {
|
|||
INSTANCE_GROUPS+=($(gcloud compute instance-groups managed list \
|
||||
--zones "${ZONE}" --project "${PROJECT}" \
|
||||
--regexp "${NODE_INSTANCE_PREFIX}-.+" \
|
||||
--format='value(instanceGroup)' || true))
|
||||
--format='value(name)' || true))
|
||||
NODE_NAMES=()
|
||||
if [[ -n "${INSTANCE_GROUPS[@]:-}" ]]; then
|
||||
for group in "${INSTANCE_GROUPS[@]}"; do
|
||||
|
|
Loading…
Reference in New Issue