Commit da5251ad authored by k8s-merge-robot's avatar k8s-merge-robot

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

Auto commit by PR queue bot
parents eb554aa3 abe7fc0e
......@@ -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