{{- if .Values.mongodb.enabled }}
apiVersion: v1
kind: Secret
metadata:
  name: {{ template "distribution.fullname" . }}-mongo-connection
  labels:
    app: {{ template "distribution.name" . }}
    chart: {{ template "distribution.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
type: Opaque
data:
  mongo_connectionString: {{ template "mongodb.url" . }}
  audit_mongo_connectionString: {{ template "mongodb.audit.url" . }}
{{- end }}