{{- /*
Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}

{{- if eq "gcpSecretManager" .Values.secretsBackend.backend  }}
apiVersion: v1
kind: Secret
metadata:
  name: {{ include "chainloop.cas.fullname" . }}-gcp-secretmanager-serviceaccountkey
  labels:
    {{- include "chainloop.cas.labels" . | nindent 4 }}
type: Opaque
data:
  serviceAccountKey.json: {{ .Values.secretsBackend.gcpSecretManager.serviceAccountKey | b64enc | quote  }}
{{- end }}
