13 lines
346 B
YAML
13 lines
346 B
YAML
{{- if not .Values.postgres.existingSecret }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "postgresql.fullname" . }}
|
|
labels:
|
|
{{- include "postgresql.labels" . | nindent 4 }}
|
|
type: Opaque
|
|
data:
|
|
postgres-password: {{ randAlphaNum 16 | b64enc | quote }}
|
|
replication-password: {{ randAlphaNum 16 | b64enc | quote }}
|
|
{{- end }}
|