Merge pull request #19170 from ZJU-SEL/fix-validation

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot 2016-01-10 14:22:57 -08:00
commit da5251ad60

View File

@ -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