Kyverno
Medium
Mutation
Which of the following is NOT a valid operation in a Kyverno mutate rule?
Select your answer:
Show answer and explanation
Answer: merge
Explanation
patchesJson6902 in a mutate rule uses RFC 6902 JSON Patch, whose operations are add, remove, replace, move, copy and test. There is no merge operation; to merge fields, Kyverno offers patchStrategicMerge, which works like kubectl's strategic merge patches.
More medium Kyverno questions
- What is the purpose of the 'policyReport' resource in Kyverno?
- Which of the following is a valid way to exclude system namespaces in a Kyverno policy?
- What is the purpose of the 'match.resources.selector' field in a Kyverno policy?
- What is the purpose of the 'kyverno.io/ignore' annotation?
- Which of the following is a valid way to use a variable in a Kyverno policy pattern?
- What is the purpose of the 'kyverno.io/generated-by' annotation?