mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-25 07:29:38 -05:00
e2e: print K8s Pods and Events when kubectl wait fails
This commit is contained in:
parent
de86bb025f
commit
70ca69f6bc
@ -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::"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user