Commit 1f6809b7 authored by Shyam Jeedigunta's avatar Shyam Jeedigunta

Only list hollow-node pods while trying to count them

parent daf591c1
...@@ -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