{{- if .Values.presto.spec.config.azure.createSecret -}}
apiVersion: v1
kind: Secret
metadata:
  name: presto-azure-credentials
data:
{{- if .Values.presto.spec.config.azure.storageAccountName }}
  azure-storage-account-name: {{ .Values.presto.spec.config.azure.storageAccountName | b64enc | quote}}
{{- end}}
{{- if .Values.presto.spec.config.azure.secretAccessKey }}
  azure-secret-access-key: {{ .Values.presto.spec.config.azure.secretAccessKey | b64enc | quote}}
{{- end}}
{{- end -}}
