apiVersion: v1
kind: Secret
metadata:
  name: {{ include "hlf-ord.fullname" . }}
  labels:
{{ include "labels.standard" . | indent 4 }}
type: Opaque
data:
  CA_ADDRESS: {{ .Values.caAddress | b64enc | quote }}
  CA_USERNAME: {{ .Values.caUsername | b64enc | quote }}
  {{ if .Values.caPassword }}
  CA_PASSWORD:  {{ .Values.caPassword | b64enc | quote }}
  {{ else }}
  CA_PASSWORD: {{ randAlphaNum 24 | b64enc | quote }}
  {{ end }}
