fix(helm): replace broken nc -z in migrate job init container

BusyBox 1.37 nc -z outputs "punt!" and hangs. Use nc -w 2 with
stdin redirect instead, which correctly tests TCP connectivity.
This commit is contained in:
2026-03-31 23:06:51 +02:00
parent ab2484474e
commit 08d83bc57e

View File

@@ -52,7 +52,7 @@ spec:
- -c
- |
echo "Waiting for PostgreSQL..."
until nc -z "$DB_HOST" "$DB_PORT"; do
until nc -w 2 "$DB_HOST" "$DB_PORT" < /dev/null; do
sleep 3
done
echo "PostgreSQL is reachable"