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