use describe node to print node events as well

This commit is contained in:
Paco Xu 2023-03-21 14:57:12 +08:00 committed by GitHub
parent a780544f58
commit a2cf4e7345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,7 +183,7 @@ function wait-for-hollow-nodes-to-run-or-timeout {
# Fail it if it already took more than 30 minutes.
if [ $((now - start)) -gt 1800 ]; then
echo ""
"${KUBECTL}" --kubeconfig="${LOCAL_KUBECONFIG}" get node -o yaml
"${KUBECTL}" --kubeconfig="${LOCAL_KUBECONFIG}" describe node
# shellcheck disable=SC2154 # Color defined in sourced script
echo -e "${color_red} Timeout waiting for all hollow-nodes to become Running. ${color_norm}"
# Try listing nodes again - if it fails it means that API server is not responding