mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +00:00
ci: get logs from all pods, not only the 1st
The JSON formatting will return the name of the first pod, not all pods on the list. By useing `items[*]` the names of all pods will be returned. This causes all logs to be fetched, instead of only the logs from the 1st pod. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
ad2c02bdc0
commit
0dd488374f
@ -45,7 +45,7 @@ log minikube_ssh sudo tar c /var/lib/rook | tar xvO
|
||||
# gets status of the Rook deployment
|
||||
log kubectl -n rook-ceph get events
|
||||
log kubectl -n rook-ceph get pods
|
||||
for POD in $(kubectl -n rook-ceph get pods -o jsonpath='{.items[0].metadata.name}')
|
||||
for POD in $(kubectl -n rook-ceph get pods -o jsonpath='{.items[*].metadata.name}')
|
||||
do
|
||||
log kubectl -n rook-ceph describe pod "${POD}"
|
||||
log kubectl -n rook-ceph logs "${POD}" --all-containers
|
||||
|
Loading…
Reference in New Issue
Block a user