include other namespaces that include the privileged-movers label

This commit is contained in:
Joseph Hanson 2024-10-22 16:12:35 -05:00
parent f4ec9777a5
commit a070f8381b
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -14,13 +14,17 @@ spec:
rules: rules:
- name: set-volsync-movers-custom-config - name: set-volsync-movers-custom-config
match: match:
any: all:
- resources: - resources:
kinds: ["batch/v1/Job"] kinds: ["batch/v1/Job"]
namespaces: ["default"]
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/created-by: volsync app.kubernetes.io/created-by: volsync
- resources:
kinds: ["batch/v1/Job"]
namespaceSelector:
matchLabels:
volsync.backube/privileged-movers: "true"
mutate: mutate:
patchStrategicMerge: patchStrategicMerge:
spec: spec: