mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #7164 from fgrzadkowski/fix_wait_minion
Wait for minion to start even if gcloud command fails.
This commit is contained in:
commit
cf824ae5e0
@ -198,9 +198,9 @@ function wait-for-minions-to-run {
|
||||
echo -e -n "${color_yellow}Waiting for minions to run. "
|
||||
echo -e "${running_minions} out of ${NUM_MINIONS} running. Retrying.${color_norm}"
|
||||
sleep 5
|
||||
running_minions=$(gcloud preview --project "${PROJECT}" instance-groups \
|
||||
running_minions=$((gcloud preview --project "${PROJECT}" instance-groups \
|
||||
--zone "${ZONE}" instances --group "${NODE_INSTANCE_PREFIX}-group" list \
|
||||
--running | wc -l | xargs)
|
||||
--running || true) | wc -l | xargs)
|
||||
done
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user