Do not fail immediately when running the post bucket hook (#10471)

curl (unlike wget --spider) exits 0 as soon as it gets any HTTP response, even 401/403 - required if the filer rejects unauthenticated requests when JWT auth is enabled
This commit is contained in:
Lukas Kallies
2026-07-28 13:53:22 -07:00
committed by GitHub
parent 2c9ce8b319
commit 23a7a509db
@@ -103,7 +103,7 @@ spec:
echo "Waiting for service at $url..."
while [ $attempt -le $max_attempts ]; do
if wget -q --spider "$url" >/dev/null 2>&1; then
if curl -sS -o /dev/null --max-time 5 "$url" >/dev/null 2>&1; then
echo "Service at $url is up!"
return 0
fi