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.
More easy Kyverno questions
- What is Kyverno?
- Which Kubernetes resource type does Kyverno use to define policies?
- What are the three main types of rules in Kyverno policies?
- Which command is used to install Kyverno in a Kubernetes cluster?
- What is the purpose of a validation rule in Kyverno?
- What is the purpose of a mutation rule in Kyverno?