We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a034811 + 428e06c commit 8882ebfCopy full SHA for 8882ebf
check_kubernetes.sh
@@ -367,7 +367,7 @@ mode_pods() {
367
for pod in "${pods[@]}"; do
368
containers=($(echo "$nsdata" | \
369
jq -r "select(.metadata.name==\"$pod\") | \
370
- .status.containerStatuses[].name"))
+ .status.containerStatuses[]?.name"))
371
for container in "${containers[@]}"; do
372
restart_count=$(echo "$nsdata" | \
373
0 commit comments