Merge pull request #6 from petrukngantuk/master

Fixing InitContainer when using ExternalDB
This commit is contained in:
Charlie Drage 2020-02-18 16:58:50 -05:00 committed by GitHub
commit 2743df3c03
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