k8wiz
Kyverno
Medium
Mutation

A Kyverno MutatingPolicy ApplyConfiguration can't set a container's args because the list is atomic. Which setting allows the change?

Select your answer:

Show answer and explanation

Answer: evaluation.useServerSideApply: true

Explanation

By default an apply configuration may not modify atomic structs, maps or lists, matching native MutatingAdmissionPolicy behavior. useServerSideApply: true applies the patch with server-side apply semantics, which replaces the atomic value as a whole, so anything the author had in that list is dropped. JSON mode rejects ApplyConfiguration patches entirely.

Read more about Kyverno