k8wiz
Kyverno
Easy
Mutation

Which two patchType values does a mutation in a Kyverno MutatingPolicy accept?

Select your answer:

Show answer and explanation

Answer: ApplyConfiguration and JSONPatch

Explanation

MutatingPolicy follows the Kubernetes MutatingAdmissionPolicy, whose mutations use either an ApplyConfiguration expression that returns a partial object to merge or a JSONPatch expression that returns RFC 6902 operations. Legacy patchStrategicMerge overlays are not supported and have to be rewritten as one of these two.

Read more about Kyverno