diff --git a/kubernetes/apps/kyverno/kyverno/policies/remove-cpu-limits.yaml b/kubernetes/apps/kyverno/kyverno/policies/remove-cpu-limits.yaml index 54b2bffb..801c6614 100644 --- a/kubernetes/apps/kyverno/kyverno/policies/remove-cpu-limits.yaml +++ b/kubernetes/apps/kyverno/kyverno/policies/remove-cpu-limits.yaml @@ -21,6 +21,9 @@ spec: - resources: kinds: ["Pod"] mutate: + targets: + - apiVersion: v1 + kind: Pod foreach: - list: "request.object.spec.containers" patchesJson6902: |- @@ -37,6 +40,9 @@ spec: operator: GreaterThanOrEquals value: 1 mutate: + targets: + - apiVersion: v1 + kind: Pod foreach: - list: "request.object.spec.initContainers" patchesJson6902: |-