[ci skip] Fix health check false positives for completed CronJob pods
This commit is contained in:
parent
de9c0869ba
commit
038d4434c4
1 changed files with 1 additions and 1 deletions
|
|
@ -462,7 +462,7 @@ check_crowdsec() {
|
|||
return 0
|
||||
fi
|
||||
|
||||
not_running=$(echo "$cs_pods" | awk '$3 != "Running" {print $1 ": " $3}' || true)
|
||||
not_running=$(echo "$cs_pods" | awk '$3 != "Running" && $3 != "Completed" {print $1 ": " $3}' || true)
|
||||
if [[ -n "$not_running" ]]; then
|
||||
[[ "$QUIET" == true ]] && section_always 11 "CrowdSec Agents"
|
||||
while IFS= read -r line; do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue