Don't exit abruptly if there aren't yet any minions right after

the cluster is created.
This commit is contained in:
Robert Bailey 2015-05-01 13:51:59 -07:00
parent f74fab4e56
commit 14c2fb11e1

View File

@ -31,7 +31,7 @@ trap 'rm -rf "${MINIONS_FILE}"' EXIT
attempt=0
while true; do
"${KUBE_ROOT}/cluster/kubectl.sh" get nodes -o template -t $'{{range.items}}{{.metadata.name}}\n{{end}}' --api-version=v1beta3 > "${MINIONS_FILE}"
found=$(grep -c . "${MINIONS_FILE}")
found=$(grep -c . "${MINIONS_FILE}") || true
if [[ ${found} == "${NUM_MINIONS}" ]]; then
break
else