(logging) Add Pod YAML to debug logs

- Serialize all namespace pods to YAML in the debug
  logs

Change-Id: Idbd027dd80d939e79e2736aea17291293fcdbdd9
This commit is contained in:
Hussey, Scott (sh8121) 2019-06-24 13:47:20 -05:00
parent 1194c790b9
commit cfb64c783b
1 changed files with 2 additions and 0 deletions

View File

@ -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 "$@"' _ {} | \