1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-05 15:37:19 +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 echo "Timeout ${timeout} exceeded" >&2
kubectl --namespace "${namespace}" get pods kubectl --namespace "${namespace}" get pods
docker images | grep "kyverno" docker images | grep "kyverno"
kubectl --namespace "${namespace}" describe deployment "${deployment}" -o yaml
kubectl --namespace "${namespace}" logs -l app=kyverno kubectl --namespace "${namespace}" logs -l app=kyverno
kill "${wait_pid}" kill "${wait_pid}"
} }