mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #21298 from gmarek/validate
Auto commit by PR queue bot
This commit is contained in:
commit
62474f1fbf
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user