15 lines
524 B
YAML
15 lines
524 B
YAML
{{- if eq .Values.configtype "configDB" }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ .Release.Name }}-db-config-secret
|
|
labels:
|
|
app: {{ .Release.Name }}
|
|
type: Opaque
|
|
data:
|
|
configDB.conf: |
|
|
{{- $connection := .Values.dbConfig.connection | quote }}
|
|
{{- $user := .Values.dbConfig.user | quote }}
|
|
{{- $password := .Values.dbConfig.password | quote }}
|
|
{{- printf "%%dbconfig= (\n connection => \"%s\",\n user => \"%s\",\n password => \"%s\"\n);" $connection $user $password | b64enc }}
|
|
{{- end }} |