k8wiz
Kustomize
Hard
Mutation

A JSON 6902 patch adds an annotation named example.com/owner. How is that key written in the patch path?

Select your answer:

Show answer and explanation

Answer: /metadata/annotations/example.com~1owner

Explanation

JSON Pointer escapes / as ~1 and ~ as ~0. Without the escape, the path points at a key named owner nested under example.com, and the patch fails or lands in the wrong place.