|
{{- if not (hasKey .Values.secrets "users") }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "psmdb-database.fullname" . }}-secrets
|
|
labels:
|
|
{{ include "psmdb-database.labels" . | indent 4 }}
|
|
type: Opaque
|
|
stringData:
|
|
{{ .Values.users | toYaml | indent 2 }}
|
|
{{- end -}}
|