blob: 6dd4c7da5517e1d491a924a75cf2f44de86bd427 [file] [log] [blame]
Dominic Lunanuova50aafc52018-03-30 02:29:23 +00001apiVersion: v1
2kind: Secret
3metadata:
4 name: {{ template "postgresql.fullname" . }}
5 labels:
6 app: {{ template "postgresql.fullname" . }}
7 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
8 release: "{{ .Release.Name }}"
9 heritage: "{{ .Release.Service }}"
10type: Opaque
11data:
12 {{ if .Values.postgresPassword }}
13 postgres-password: {{ .Values.postgresPassword | b64enc | quote }}
14 {{ else }}
15 postgres-password: {{ randAlphaNum 10 | b64enc | quote }}
16 {{ end }}
17 {{- if .Values.metrics.customMetrics }}
18 custom-metrics.yaml: {{ toYaml .Values.metrics.customMetrics | b64enc | quote }}
19 {{- end }}