1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

print deployment YAML on timeout

This commit is contained in:
Jim Bugwadia 2020-10-22 12:43:50 -07:00
parent 2ba2222f4e
commit 8be30879f6

View file

@ -22,6 +22,7 @@ monitor_timeout() {
echo "Timeout ${timeout} exceeded" >&2
kubectl --namespace "${namespace}" get pods
docker images | grep "kyverno"
kubectl --namespace "${namespace}" describe deployment "${deployment}" -o yaml
kubectl --namespace "${namespace}" logs -l app=kyverno
kill "${wait_pid}"
}