diff --git a/kubernetes/apps/kyverno/kyverno/policies/volsync-movers.yaml b/kubernetes/apps/kyverno/kyverno/policies/volsync-movers.yaml index 6cfb9e9f..d6c1db48 100644 --- a/kubernetes/apps/kyverno/kyverno/policies/volsync-movers.yaml +++ b/kubernetes/apps/kyverno/kyverno/policies/volsync-movers.yaml @@ -14,17 +14,14 @@ spec: rules: - name: set-volsync-movers-custom-config match: - all: - - resources: - kinds: ["batch/v1/Job"] - selector: - matchLabels: - app.kubernetes.io/created-by: volsync - - resources: - kinds: ["batch/v1/Job"] - namespaceSelector: - matchLabels: - volsync.backube/privileged-movers: "true" + resources: + kinds: ["batch/v1/Job"] + selector: + matchLabels: + app.kubernetes.io/created-by: volsync + namespaceSelector: + matchLabels: + volsync.backube/privileged-movers: "true" mutate: patchStrategicMerge: spec: @@ -38,6 +35,10 @@ spec: values: [11] template: spec: + initContainers: + - name: jitter + image: docker.io/library/busybox:latest + command: ['sh', '-c', 'sleep $(shuf -i 0-60 -n 1)'] containers: - name: restic volumeMounts: