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.
More medium Kyverno questions
- What happens when a resource violates a Kyverno validation policy with 'validationFailureAction' set to 'enforce'?
- What is the purpose of a generation rule in Kyverno?
- Which of the following is NOT a valid resource selection method in Kyverno policies?
- What is the purpose of the 'background' field in a Kyverno policy?
- What is the purpose of the 'validationFailureAction' field in a Kyverno policy?
- Which of the following is a valid JMESPath expression in a Kyverno policy?