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