{{- if .Values.presto.spec.config.s3Compatible.ca.createSecret -}}
apiVersion: v1
kind: Secret
metadata:
  name: presto-s3-compatible-ca
  labels:
    app: presto
type: Opaque
data:
  ca-bundle.crt: {{ .Values.presto.spec.config.s3Compatible.ca.content | b64enc | quote }}
{{- end -}}
