fix: added an extra label on ExternalSecrets

- this label will provide filtration for resource exclusion
This commit is contained in:
Dev Jadeja
2025-03-27 16:13:11 +05:30
parent 81ec16a4ce
commit ee95a47268

View File

@ -6,14 +6,15 @@ metadata:
name: "{{include "py-app.name" $ }}-{{ $name }}" name: "{{include "py-app.name" $ }}-{{ $name }}"
labels: labels:
{{- include "py-app.labels" $ | nindent 4 }} {{- include "py-app.labels" $ | nindent 4 }}
external-secrets/managed: "true" # ArgoCD will not manage the Secret that has this label
annotations: annotations:
argocd.argoproj.io/hook: PreSync,Sync argocd.argoproj.io/hook: PreSync,Sync
argocd.argoproj.io/sync-wave: "-1" argocd.argoproj.io/sync-wave: "-1"
spec: spec:
refreshInterval: {{ default "1h" $val.refreshInterval }} # rate SecretManager pulls GCPSM refreshInterval: {{ default "1h" $val.refreshInterval }}
secretStoreRef: secretStoreRef:
kind: ClusterSecretStore kind: ClusterSecretStore
name: {{ $val.secretStoreName }} # name of the SecretStore (or kind specified) name: {{ $val.secretStoreName }}
target: target:
name: {{ $val.targetName }} name: {{ $val.targetName }}
creationPolicy: {{ default "Owner" $val.targetCreationPolicy }} creationPolicy: {{ default "Owner" $val.targetCreationPolicy }}