Commit ae0989f9 authored by Zach Loafman's avatar Zach Loafman

Merge pull request #7650 from roberthbailey/validate-cluster

Don't exit abruptly if there aren't yet any minions right after the cluster is created.
parents 1a8845af 14c2fb11
...@@ -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