{{- if .Values.hive.spec.config.s3Compatible.createSecret -}}
apiVersion: v1
kind: Secret
metadata:
  name: hive-s3-compatible-credentials
data:
{{- if .Values.hive.spec.config.s3Compatible.accessKeyID }}
  aws-access-key-id: {{ .Values.hive.spec.config.s3Compatible.accessKeyID | b64enc | quote}}
{{- end}}
{{- if .Values.hive.spec.config.s3Compatible.secretAccessKey }}
  aws-secret-access-key: {{ .Values.hive.spec.config.s3Compatible.secretAccessKey | b64enc | quote}}
{{- end}}
{{- end -}}
