fix: remove argocd tracking ids from clones

This commit is contained in:
Jonas Juselius
2024-02-21 12:59:02 +01:00
parent 163f1f9e0b
commit 4fa4bb4d12
@@ -0,0 +1,28 @@
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: remove-argocd-tracking-id
spec:
background: true
generateExisting: true
rules:
- name: remove-argocd-tracking-ids
mutate:
patchJson6902: |-
- path: /metadata/annotations/argocd.argoproj.io~1tracking-id
op: remove
match:
any:
- resources:
kinds:
- Secret
names:
- prod-rabbitmq
- staging-rabbitmq
exclude:
any:
- resources:
kinds:
- Namespace
names:
- rabbitmq