Commit 14c2fb11 authored by Robert Bailey's avatar Robert Bailey

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

the cluster is created.
parent f74fab4e
...@@ -31,7 +31,7 @@ trap 'rm -rf "${MINIONS_FILE}"' EXIT ...@@ -31,7 +31,7 @@ trap 'rm -rf "${MINIONS_FILE}"' EXIT
attempt=0 attempt=0
while true; do while true; do
"${KUBE_ROOT}/cluster/kubectl.sh" get nodes -o template -t $'{{range.items}}{{.metadata.name}}\n{{end}}' --api-version=v1beta3 > "${MINIONS_FILE}" "${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 if [[ ${found} == "${NUM_MINIONS}" ]]; then
break break
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment