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