mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
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:
commit
ad6c85ca2e
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user