Skip to content

Commit

Permalink
Bug Fix: Describe storageclasses wasn't collected
Browse files Browse the repository at this point in the history
Small adjustment to collect describe data for storageclasses
  • Loading branch information
ReggieRichardson authored and frnckdlprt committed Mar 14, 2024
1 parent 0cb0bc3 commit 412c81c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate_postmortem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 412c81c

Please sign in to comment.