Commit 433e855a authored by gmarek's avatar gmarek

Fix validate cluster

parent 6e2e3986
...@@ -54,7 +54,7 @@ while true; do ...@@ -54,7 +54,7 @@ while true; do
# available and then get restarted as the kubelet configures the docker bridge. # available and then get restarted as the kubelet configures the docker bridge.
node=$("${KUBE_ROOT}/cluster/kubectl.sh" get nodes) || true node=$("${KUBE_ROOT}/cluster/kubectl.sh" get nodes) || true
found=$(($(echo "${node}" | wc -l) - 1)) || true found=$(($(echo "${node}" | wc -l) - 1)) || true
ready=$(echo "${node}" | grep -c "Ready") || true ready=$(($(echo "${node}" | grep -v "NotReady" | wc -l ) - 1)) || true
if (( "${found}" == "${EXPECTED_NUM_NODES}" )) && (( "${ready}" == "${EXPECTED_NUM_NODES}")); then if (( "${found}" == "${EXPECTED_NUM_NODES}" )) && (( "${ready}" == "${EXPECTED_NUM_NODES}")); then
break break
......
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