fhem-docker_helm-chart/templates/secret.yaml
2024-10-11 11:16:53 +02:00

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 }}