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