11 lines
389 B
YAML
11 lines
389 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: {{ printf "%%dbconfig= (\n connection => '%s',\n user => '%s',\n password => '%s'\n);" .Values.dbConfig.connection .Values.dbConfig.user .Values.dbConfig.password | b64enc }}
|
|
{{- end }} |