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