From ad52d810c3e07b3a9f67b1c12c4c16730be5af9d Mon Sep 17 00:00:00 2001 From: kirson-git Date: Wed, 17 Jun 2026 17:51:38 +0300 Subject: [PATCH] fix(setup.sh): guard SIGPIPE in site-agent pod lookup ([7h] false failure) `_POD="$(kubectl get pods ... -o name 2>/dev/null | head -1)"` runs under `set -euo pipefail`. `head -1` closes the pipe early, kubectl gets SIGPIPE and exits 141; pipefail propagates it, so the [7h] site-agent phase aborts with 'SETUP FAILED ... Code: 141' even though site-agent deployed successfully (StatefulSet ready, Site CR HandshakeComplete). Add '|| true' so the pipe result is tolerated. Co-Authored-By: Claude Opus 4.8 Signed-off-by: kirson-git --- helm-prereqs/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm-prereqs/setup.sh b/helm-prereqs/setup.sh index 8d84de19d7..c29d71765a 100755 --- a/helm-prereqs/setup.sh +++ b/helm-prereqs/setup.sh @@ -796,7 +796,7 @@ _CONNECTED=false for _i in $(seq 1 24); do _POD="$(kubectl get pods -n nico-rest \ -l "app.kubernetes.io/name=nico-rest-site-agent" \ - -o name 2>/dev/null | head -1)" + -o name 2>/dev/null | head -1 || true)" if [ -n "${_POD}" ] && \ kubectl logs -n nico-rest "${_POD}" --since=5m 2>/dev/null \ | grep -q "NicoClient: successfully connected to server"; then