mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #33832 from wojtek-t/better_kubemark_debugging
Automatic merge from submit-queue Extend logging for kubemark failures debugging Ref https://github.com/kubernetes/kubernetes/issues/33723
This commit is contained in:
commit
a698d490b9
@ -264,8 +264,10 @@ until [[ "${ready}" -ge "${NUM_NODES}" ]]; do
|
||||
echo "Got error while trying to list Nodes. Probably API server is down."
|
||||
fi
|
||||
pods=$("${KUBECTL}" get pods --namespace=kubemark) || true
|
||||
running=$(($(echo "${pods}" | grep "Running" | wc -l)))
|
||||
echo "${running} HollowNode pods are reported as 'Running'"
|
||||
not_running=$(($(echo "${pods}" | grep -v "Running" | wc -l) - 1))
|
||||
echo "${not_running} HollowNode pods are reported as not running"
|
||||
echo "${not_running} HollowNode pods are reported as NOT 'Running'"
|
||||
echo $(echo "${pods}" | grep -v "Running")
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user