mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Check if INSTANCE_GROUPS is empty in detect_node_failures.
This commit is contained in:
parent
8e879db938
commit
325511d0ab
@ -435,6 +435,9 @@ function detect_node_failures() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
detect-node-names
|
detect-node-names
|
||||||
|
if [ -z "$INSTANCE_GROUPS" ]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
for group in "${INSTANCE_GROUPS[@]}"; do
|
for group in "${INSTANCE_GROUPS[@]}"; do
|
||||||
local creation_timestamp=$(gcloud compute instance-groups managed describe \
|
local creation_timestamp=$(gcloud compute instance-groups managed describe \
|
||||||
"${group}" \
|
"${group}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user