Skip to content

Commit 5072ba7

Browse files
committed
must-gather: Add etcd kind logging
Signed-off-by: Jakob Naucke <jnaucke@redhat.com>
1 parent 25560fe commit 5072ba7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

must-gather/gather

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,8 @@ for ns in $(${KUBECTL} get namespaces -o jsonpath={..metadata.name}); do
3131
"${COLLECTION_PATH}/logs/${pod}-${ns}.log"
3232
done
3333
done
34+
35+
etcd_kind=etcd-kind-control-plane
36+
if ${KUBECTL} get $etcd_kind -n kube-system &> /dev/null; then
37+
${KUBECTL} logs $etcd_kind &> "${COLLECTION_PATH}/logs/${etcd_kind}.log"
38+
fi

0 commit comments

Comments
 (0)