apiVersion: v1
kind: Secret
metadata:
  name: {{ include "hlf-ca.fullname" . }}--ca
  labels:
{{ include "labels.standard" . | indent 4 }}
type: Opaque
data:
  CA_ADMIN: {{ .Values.adminUsername | b64enc | quote }}
  {{ if .Values.adminPassword }}
  CA_PASSWORD:  {{ .Values.adminPassword | b64enc | quote }}
  {{ else }}
  CA_PASSWORD: {{ randAlphaNum 24 | b64enc | quote }}
  {{ end }}
