Commit 852c517
fix(setup.sh): guard SIGPIPE in site-agent pod lookup (spurious [7h] Code 141) (#2676)
## Problem
In the `[7h]` site-agent verification, the pod lookup is:
```
_POD="$(kubectl get pods -n nico-rest -l ... -o name 2>/dev/null | head -1)"
```
The script runs under `set -euo pipefail` (line 77). `head -1` closes
the pipe after the first line, kubectl receives **SIGPIPE → exit 141**,
and `pipefail` propagates it, so the command substitution fails and the
phase aborts with `SETUP FAILED ... Code: 141` — **even though
site-agent deployed fine** (StatefulSet ready, Site CR
`HandshakeComplete`). Reproduced on a clean v0.10.3 install; same code
on `main`.
## Fix
Append `|| true` so the SIGPIPE-induced 141 is tolerated.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Signed-off-by: kirson-git <ekirson@nvidia.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Hasan Khan <hasank@nvidia.com>1 parent 2041ccf commit 852c517
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
| 799 | + | |
800 | 800 | | |
801 | 801 | | |
802 | 802 | | |
| |||
0 commit comments