This commit is contained in:
Joseph Hanson 2024-10-29 09:24:58 -05:00
parent 1da4f8c090
commit 2deca013b2
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -10,7 +10,7 @@ metadata:
This policy sets custom configuration on the Volsync mover Jobs.
policies.kyverno.io/subject: Pod
spec:
mutateExistingOnPolicyUpdate: true
generateExistingOnPolicyUpdate: true
rules:
- name: set-volsync-movers-custom-config
match:
@ -23,6 +23,9 @@ spec:
matchLabels:
volsync.backube/privileged-movers: "true"
mutate:
targets:
- apiVersion: batch/v1
kind: Job
patchStrategicMerge:
spec:
podReplacementPolicy: Failed