{{- if .Values.presto.spec.config.gcs.createSecret -}}
apiVersion: v1
kind: Secret
metadata:
  name: presto-gcs-credentials
data:
{{- if .Values.presto.spec.config.gcs.serviceAccountKeyJSON }}
  gcs-service-account.json: {{ .Values.presto.spec.config.gcs.serviceAccountKeyJSON | toJson | b64enc | quote }}
{{- end }}
{{- end -}}
