Dominic Lunanuova | 50aafc5 | 2018-03-30 02:29:23 +0000 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Secret |
| 3 | metadata: |
| 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 }}" |
| 10 | type: Opaque |
| 11 | data: |
| 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 }} |