apiVersion: v1
kind: Secret
metadata:
  name: {{ include "hlf-couchdb.fullname" . }}
  labels:
{{ include "labels.standard" . | indent 4 }}
type: Opaque
data:
  COUCHDB_USERNAME:  {{ .Values.couchdbUsername | b64enc | quote }}
  {{ if .Values.couchdbPassword }}
  COUCHDB_PASSWORD:  {{ .Values.couchdbPassword | b64enc | quote }}
  {{ else }}
  COUCHDB_PASSWORD: {{ randAlphaNum 24 | b64enc | quote }}
  {{ end }}
