diff --git a/.github/actions/constellation_create/action.yml b/.github/actions/constellation_create/action.yml index c6f86a19c..8b2f53e99 100644 --- a/.github/actions/constellation_create/action.yml +++ b/.github/actions/constellation_create/action.yml @@ -215,12 +215,12 @@ runs: exit 1 fi echo "$(kubectl get nodes -o json | jq '.items | length')/"${NODES_COUNT}" nodes have joined" - kubectl wait --for=condition=ready --all nodes --timeout=20m - kubectlErrorCode=$? - if [[ "${kubectlErrorCode}" -ne 0 ]]; then + if ! kubectl wait --for=condition=ready --all nodes --timeout=20m; then kubectl get pods -n kube-system kubectl get events -n kube-system - exit "${kubectlErrorCode}" + echo "::error::kubectl wait timed out before all nodes became ready" + echo "::endgroup::" + exit 1 fi echo "::endgroup::"