ci: get logs from all pods in the rook-ceph namespace on failure

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2021-05-14 16:33:33 +02:00 committed by mergify[bot]
parent 7ebc8306ef
commit 0049638e64

View File

@ -44,7 +44,7 @@ log minikube_ssh sudo tar c /var/lib/rook | tar xvO
# gets status of the Rook deployment
log kubectl -n rook-ceph get pods
for POD in $(kubectl -n rook-ceph get pod -l rook_cluster=rook-ceph -o jsonpath='{.items[0].metadata.name}')
for POD in $(kubectl -n rook-ceph get pods -o jsonpath='{.items[0].metadata.name}')
do
log kubectl -n rook-ceph describe pod "${POD}"
log kubectl -n rook-ceph logs "${POD}"