{{- if .Values.externalDatabase.type }}
apiVersion: v1
kind: Secret
metadata:
  name: {{ include "hlf-ca.fullname" . }}--db
  labels:
{{ include "labels.standard" . | indent 4 }}
type: Opaque
data:
  db-password: {{ .Values.externalDatabase.password | b64enc | quote }}
{{- end }}