feat: add connectionCommandOverride and preConnectionCommandOverride parameters to values

This commit is contained in:
Daan
2026-07-09 15:16:02 +02:00
parent 29df27268d
commit 5fbf28ccbc
6 changed files with 69 additions and 75 deletions

View File

@ -66,12 +66,15 @@ spec:
- mountPath: /data
name: data-runner
{{- end }}
- name: init-gitea
- name: reach-gitea
image: "{{ include "gitea.actions.init.image" . }}"
command:
- sh
- -c
- |
{{- if .Values.init.preConnectionCommandOverride }}
{{ .Values.init.preConnectionCommandOverride }}
{{- end }}
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