Commit abe7fc0e authored by He Simei's avatar He Simei

update validate-cluster.sh

parent 9a1d16f4
......@@ -40,9 +40,9 @@ while true; do
# Suppress errors from kubectl output because during cluster bootstrapping
# for clusters where the master node is registered, the apiserver will become
# available and then get restarted as the kubelet configures the docker bridge.
nodes=$("${KUBE_ROOT}/cluster/kubectl.sh" get nodes) || true
found=$(($(echo "${nodes}" | wc -l) - 1)) || true
ready=$(echo "${nodes}" | grep -c "Ready") || true
node=$("${KUBE_ROOT}/cluster/kubectl.sh" get nodes) || true
found=$(($(echo "${node}" | wc -l) - 1)) || true
ready=$(echo "${node}" | grep -c "Ready") || true
if (( "${found}" == "${EXPECTED_NUM_NODES}" )) && (( "${ready}" == "${EXPECTED_NUM_NODES}")); then
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