mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +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 -n "${color_yellow}Waiting for minions to run. "
|
||||||
echo -e "${running_minions} out of ${NUM_MINIONS} running. Retrying.${color_norm}"
|
echo -e "${running_minions} out of ${NUM_MINIONS} running. Retrying.${color_norm}"
|
||||||
sleep 5
|
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 \
|
--zone "${ZONE}" instances --group "${NODE_INSTANCE_PREFIX}-group" list \
|
||||||
--running | wc -l | xargs)
|
--running || true) | wc -l | xargs)
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user