mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-25 15:39:37 -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
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "$(kubectl get nodes -o json | jq '.items | length')/"${NODES_COUNT}" nodes have joined"
|
echo "$(kubectl get nodes -o json | jq '.items | length')/"${NODES_COUNT}" nodes have joined"
|
||||||
kubectl wait --for=condition=ready --all nodes --timeout=20m
|
if ! kubectl wait --for=condition=ready --all nodes --timeout=20m; then
|
||||||
kubectlErrorCode=$?
|
|
||||||
if [[ "${kubectlErrorCode}" -ne 0 ]]; then
|
|
||||||
kubectl get pods -n kube-system
|
kubectl get pods -n kube-system
|
||||||
kubectl get events -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
|
fi
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user