From cfb64c783ba9e7c835d12314e50ad019f6e6c545 Mon Sep 17 00:00:00 2001 From: "Hussey, Scott (sh8121)" Date: Mon, 24 Jun 2019 13:47:20 -0500 Subject: [PATCH] (logging) Add Pod YAML to debug logs - Serialize all namespace pods to YAML in the debug logs Change-Id: Idbd027dd80d939e79e2736aea17291293fcdbdd9 --- tools/multi_nodes_gate/airship_gate/bin/debug-report-lite.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/multi_nodes_gate/airship_gate/bin/debug-report-lite.sh b/tools/multi_nodes_gate/airship_gate/bin/debug-report-lite.sh index 396b3c8b..804372bb 100755 --- a/tools/multi_nodes_gate/airship_gate/bin/debug-report-lite.sh +++ b/tools/multi_nodes_gate/airship_gate/bin/debug-report-lite.sh @@ -77,6 +77,8 @@ if which helm; then fi kubectl get --all-namespaces -o wide pods > "${BASE_DIR}/pods.txt" +kubectl get pods --all-namespaces -o yaml > "${BASE_DIR}/pods_long.yaml" +kubectl describe pods --all-namespaces > "${BASE_DIR}/pods_describe.txt" get_namespaces | \ xargs -r -n 1 -P "${PARALLELISM_FACTOR}" -I {} bash -c 'get_pods "$@"' _ {} | \