feat: add custom command override to the chart

This commit is contained in:
Daan
2026-07-09 13:41:11 +02:00
parent 764f89ee97
commit 29df27268d
3 changed files with 17 additions and 1 deletions

View File

@ -73,7 +73,11 @@ spec:
- -c
- |
echo 'Trying to reach Gitea on {{ include "gitea.actions.local_root_url" . }}'
{{- if .Values.init.connectionCommandOverride }}
until timeout 10 {{ .Values.init.connectionCommandOverride }} {{ include "gitea.actions.local_root_url" . }}; do
{{- else }}
until timeout 10 wget --no-check-certificate --spider {{ include "gitea.actions.local_root_url" . }}; do
{{- end }}
sleep 3
echo "Trying again in 3 seconds..."
done