{{- if .Values.presto.spec.config.connectors.hive.tls.createSecret -}}
apiVersion: v1
kind: Secret
metadata:
  name: {{ .Values.presto.spec.config.connectors.hive.tls.secretName }}
  labels:
    app: presto
type: Opaque
data:
  tls.crt: {{ .Values.presto.spec.config.connectors.hive.tls.certificate | b64enc | quote }}
  tls.key: {{ .Values.presto.spec.config.connectors.hive.tls.key | b64enc | quote }}
  ca.crt: {{.Values.presto.spec.config.connectors.hive.tls.caCertificate | b64enc | quote }}
{{- end -}}
