{{- include "common.values.setup" . -}}
---
apiVersion: v1
kind: Secret
metadata:
  labels:
    {{- include "common.labels" . | nindent 4 }}
    application: spilo
    team: {{ include "common.names.fullname" . }}
    # xref: https://github.com/helm/helm/issues/3053
    # xref: https://github.com/helm/helm/pull/5290
    "helm.sh/hook": "pre-install"
    "helm.sh/hook-delete-policy": "before-hook-creation"
  name: {{ include "zalando-postgres-cluster.superuser_secret" . }}
stringData:
  username: {{ include "zalando-postgres-cluster.superuser" . }}
  password: {{ include "zalando-postgres-cluster.superuser_password" . }}
type: Opaque
