fix(helm): pin busybox:1.36, add -T 10 timeout, use --spider, add activeDeadlineSeconds

This commit is contained in:
Offending Commit
2026-06-03 11:22:19 -05:00
parent ee4630e79c
commit 8fac5d060f
2 changed files with 6 additions and 4 deletions

View File

@@ -9,14 +9,15 @@ metadata:
helm.sh/hook-delete-policy: before-hook-creation
spec:
restartPolicy: Never
activeDeadlineSeconds: 60
containers:
- name: healthz
image: busybox
image: busybox:1.36
command:
- sh
- -c
- |
RESPONSE=$(wget -qO- http://{{ include "openconcho.fullname" . }}:{{ .Values.service.port }}/healthz)
RESPONSE=$(wget -T 10 -qO- http://{{ include "openconcho.fullname" . }}:{{ .Values.service.port }}/healthz)
if [ "$RESPONSE" != "ok" ]; then
echo "FAIL: expected 'ok', got '$RESPONSE'"
exit 1

View File

@@ -9,14 +9,15 @@ metadata:
helm.sh/hook-delete-policy: before-hook-creation
spec:
restartPolicy: Never
activeDeadlineSeconds: 60
containers:
- name: spa-root
image: busybox
image: busybox:1.36
command:
- sh
- -c
- |
if ! wget -qO /dev/null http://{{ include "openconcho.fullname" . }}:{{ .Values.service.port }}/; then
if ! wget -T 10 -q --spider http://{{ include "openconcho.fullname" . }}:{{ .Values.service.port }}/; then
echo "FAIL: GET / did not return HTTP 200"
exit 1
fi