Add custom gitea configuration in helm chart

This commit is contained in:
wbsong111
2024-11-13 17:09:35 +09:00
parent ef5127073e
commit c0e4205a28
4 changed files with 138 additions and 2 deletions
+14
View File
@@ -331,3 +331,17 @@ https
{{- toYaml .Values.extraVolumeMounts -}}
{{- end -}}
{{- end -}}
{{/*
Renders a value that contains template.
Usage:
{{ include "common.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }}
*/}}
{{- define "common.tplvalues.render" -}}
{{- if typeIs "string" .value }}
{{- tpl .value .context }}
{{- else }}
{{- tpl (.value | toYaml) .context }}
{{- end }}
{{- end -}}
@@ -203,6 +203,9 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ include "gitea.image" . }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.lifecycleHooks }}
lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.lifecycleHooks "context" $) | nindent 12 }}
{{- end }}
env:
# SSH Port values have to be set here as well for openssh configuration
- name: SSH_LISTEN_PORT