Commit ad6c85ca authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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.
parents e794dce4 1f6809b7
...@@ -356,7 +356,7 @@ function wait-for-hollow-nodes-to-run-or-timeout { ...@@ -356,7 +356,7 @@ function wait-for-hollow-nodes-to-run-or-timeout {
else else
echo "Got error while trying to list hollow-nodes. Probably API server is down." echo "Got error while trying to list hollow-nodes. Probably API server is down."
fi 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))) running=$(($(echo "${pods}" | grep "Running" | wc -l)))
echo "${running} hollow-nodes are reported as 'Running'" echo "${running} hollow-nodes are reported as 'Running'"
not_running=$(($(echo "${pods}" | grep -v "Running" | wc -l) - 1)) not_running=$(($(echo "${pods}" | grep -v "Running" | wc -l) - 1))
......
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