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.
More easy Kyverno questions
- Which Kyverno kind lets a namespace owner write mutation rules that apply only to resources in that namespace?
- In a Kyverno MutatingPolicy, which field turns on mutation of resources that already exist in the cluster?
- 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?