From 038d4434c4430698bd40dd083c49ad25dc06ad5a Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sat, 21 Feb 2026 19:56:39 +0000 Subject: [PATCH] [ci skip] Fix health check false positives for completed CronJob pods --- scripts/cluster_healthcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cluster_healthcheck.sh b/scripts/cluster_healthcheck.sh index b7665ae0..75095161 100755 --- a/scripts/cluster_healthcheck.sh +++ b/scripts/cluster_healthcheck.sh @@ -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