# helm_charts_mongodb-secret.yaml
apiVersion: v1
kind: Secret
metadata:
  name: {{ template "mission-control.fullname" . }}-mongodb-cred
  labels:
    app: {{ template "mission-control.name" . }}
    chart: {{ template "mission-control.chart" . }}
    heritage: {{ .Release.Service }}
    release: {{ .Release.Name }}
type: Opaque
data:
  adminPassword:  {{ required "A valid .Values.mongodb.db.adminPassword entry required!" .Values.mongodb.db.adminPassword | b64enc | quote }}
  mcPassword:  {{ required "A valid .Values.mongodb.db.mcPassword entry required!" .Values.mongodb.db.mcPassword | b64enc | quote }}
  insightPassword:  {{ required "A valid .Values.mongodb.db.insightPassword entry required!" .Values.mongodb.db.insightPassword | b64enc | quote }}