{{- $operatorValues :=  index .Values "reporting-operator" -}}
{{- if $operatorValues.spec.config.hive.tls.createSecret -}}
apiVersion: v1
kind: Secret
metadata:
  name: {{ $operatorValues.spec.config.hive.tls.secretName }}
  labels:
    app: reporting-operator
type: Opaque
data:
  ca.crt: {{ $operatorValues.spec.config.hive.tls.caCertificate | b64enc | quote }}
{{- end -}}
