From 2deca013b2580ac7f54356f211d4d0598cc050ba Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Tue, 29 Oct 2024 09:24:58 -0500 Subject: [PATCH] update --- kubernetes/apps/kyverno/kyverno/policies/volsync-movers.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kubernetes/apps/kyverno/kyverno/policies/volsync-movers.yaml b/kubernetes/apps/kyverno/kyverno/policies/volsync-movers.yaml index 8a69f3e2..67d5b09c 100644 --- a/kubernetes/apps/kyverno/kyverno/policies/volsync-movers.yaml +++ b/kubernetes/apps/kyverno/kyverno/policies/volsync-movers.yaml @@ -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