mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
* Move custom metrics to config map * Add existing secret option * created secretName helper
19 lines
514 B
YAML
19 lines
514 B
YAML
{{- if not .Values.existingSecret }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ template "postgresql.fullname" . }}
|
|
labels:
|
|
app: {{ template "postgresql.name" . }}
|
|
chart: {{ template "postgresql.chart" . }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
type: Opaque
|
|
data:
|
|
{{ if .Values.postgresPassword }}
|
|
postgres-password: {{ .Values.postgresPassword | b64enc | quote }}
|
|
{{ else }}
|
|
postgres-password: {{ randAlphaNum 10 | b64enc | quote }}
|
|
{{ end }}
|
|
{{- end }}
|