fhem-docker_helm-chart/templates/secret.yaml

11 lines
389 B
YAML
Raw Normal View History

2024-10-11 08:04:30 +00:00
{{- if eq .Values.configtype "configDB" }}
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-db-config-secret
labels:
app: {{ .Release.Name }}
type: Opaque
data:
2024-10-11 09:16:53 +00:00
configDB.conf: {{ printf "%%dbconfig= (\n connection => '%s',\n user => '%s',\n password => '%s'\n);" .Values.dbConfig.connection .Values.dbConfig.user .Values.dbConfig.password | b64enc }}
2024-10-11 08:04:30 +00:00
{{- end }}