Merge pull request #51622 from shyamjvs/correct-hollow-node-listing

Automatic merge from submit-queue

Only list hollow-node pods while trying to count them

Otherwise it's counting 1 extra due to heapster pod.
This commit is contained in:
Kubernetes Submit Queue 2017-08-30 09:19:08 -07:00 committed by GitHub
commit ad6c85ca2e

View File

@ -356,7 +356,7 @@ function wait-for-hollow-nodes-to-run-or-timeout {
else
echo "Got error while trying to list hollow-nodes. Probably API server is down."
fi
pods=$("${KUBECTL}" get pods --namespace=kubemark) || true
pods=$("${KUBECTL}" get pods -l name=hollow-node --namespace=kubemark) || true
running=$(($(echo "${pods}" | grep "Running" | wc -l)))
echo "${running} hollow-nodes are reported as 'Running'"
not_running=$(($(echo "${pods}" | grep -v "Running" | wc -l) - 1))