mirror of
https://gitea.com/gitea/helm-chart.git
synced 2024-07-04 23:34:12 +02:00
Fixing InitContainer when using ExternalDB
Fixing InitContainer when using ExternalDB
This commit is contained in:
parent
f53c3f7536
commit
07f4e87f6d
@ -9,8 +9,13 @@ Create helm partial for gitea server
|
|||||||
- name: MARIADB_PASSWORD
|
- name: MARIADB_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
{{- if .Values.mariadb.enabled }}
|
||||||
name: {{ template "mariadb.fullname" . }}
|
name: {{ template "mariadb.fullname" . }}
|
||||||
key: mariadb-password
|
key: mariadb-password
|
||||||
|
{{- else }}
|
||||||
|
name: {{ printf "%s-%s" .Release.Name "externaldb" }}
|
||||||
|
key: db-password
|
||||||
|
{{- end }}
|
||||||
- name: SCRIPT
|
- name: SCRIPT
|
||||||
value: &script |-
|
value: &script |-
|
||||||
mkdir -p /datatmp/gitea/conf
|
mkdir -p /datatmp/gitea/conf
|
||||||
|
Loading…
Reference in New Issue
Block a user