Fixing InitContainer when using ExternalDB

Fixing InitContainer when using ExternalDB
This commit is contained in:
Petruk Ngantuk 2020-02-19 01:16:31 +07:00 committed by GitHub
parent f53c3f7536
commit 07f4e87f6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,8 +9,13 @@ Create helm partial for gitea server
- name: MARIADB_PASSWORD
valueFrom:
secretKeyRef:
{{- if .Values.mariadb.enabled }}
name: {{ template "mariadb.fullname" . }}
key: mariadb-password
{{- else }}
name: {{ printf "%s-%s" .Release.Name "externaldb" }}
key: db-password
{{- end }}
- name: SCRIPT
value: &script |-
mkdir -p /datatmp/gitea/conf