CI: describe pod on k8s-create-pod wait failure

This is generally useful debug output on test failures,
and specifically this has been useful for nydus-related
issues recently.

Signed-off-by: Chris Porter <porter@ibm.com>
This commit is contained in:
Chris Porter
2024-06-05 12:37:53 -04:00
parent b30d085271
commit 4172ccb3a0

View File

@@ -57,6 +57,7 @@ k8s_create_pod() {
# TODO: run this command for debugging. Maybe it should be
# guarded by DEBUG=true?
kubectl get pods "$pod_name"
kubectl describe pod "$pod_name"
return 1
fi
}