fix: remove argocd tracking ids from clones
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user