From 412c81c880c9c6ea91846332d478239f7ea8abf5 Mon Sep 17 00:00:00 2001 From: Regina Richardson Date: Mon, 11 Mar 2024 17:46:56 -0700 Subject: [PATCH] Bug Fix: Describe storageclasses wasn't collected Small adjustment to collect describe data for storageclasses --- generate_postmortem.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate_postmortem.sh b/generate_postmortem.sh index c2b4f25..24105d0 100755 --- a/generate_postmortem.sh +++ b/generate_postmortem.sh @@ -767,7 +767,7 @@ fi OUTPUT=`$KUBECTL get storageclasses 2>/dev/null` if [[ $? -eq 0 && ${#OUTPUT} -gt 0 ]]; then echo "$OUTPUT" > "${K8S_CLUSTER_STORAGECLASS_DATA}/storageclasses.out" - while read $line; do + while read line; do sc=`echo "$line" | cut -d' ' -f1` $KUBECTL describe storageclasses $sc &>"${K8S_CLUSTER_STORAGECLASS_DESCRIBE_DATA}/${sc}.out" [ $? -eq 0 ] || rm -f "${K8S_CLUSTER_STORAGECLASS_DESCRIBE_DATA}/${sc}.out"