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 53cbf8a + 2d2c2ef commit 4cdf0f1Copy full SHA for 4cdf0f1
check_kubernetes.sh
@@ -373,7 +373,6 @@ mode_pods() {
373
count_ready=0
374
count_succeeded=0
375
count_failed=0
376
- max_restart_count=0
377
bad_container=""
378
data=$(getJSON "api/v1$api_ns/pods/")
379
[ $? -gt 0 ] && die "$data"
@@ -406,6 +405,7 @@ mode_pods() {
406
405
jq -r "select(.metadata.name==\"$pod\") | \
407
.status.containerStatuses[]?.name"))
408
for container in "${containers[@]}"; do
+ max_restart_count=0
409
restart_count=$(echo "$nsdata" | \
410
411
.status.containerStatuses[] | \
0 commit comments