k8wiz
Kyverno
Easy
Mutation

In a Kyverno MutatingPolicy, which field turns on mutation of resources that already exist in the cluster?

Select your answer:

Show answer and explanation

Answer: spec.evaluation.mutateExisting.enabled

Explanation

mutateExisting.enabled defaults to false. When it is true, the background controller mutates existing resources, using targetMatchConstraints if set and matchConstraints otherwise. background.enabled controls whether the policy is applied during background scans, and generateExisting belongs to GeneratingPolicy.

Read more about Kyverno