k8wiz
Kustomize
Hard
Mutation

In a strategic merge patch, what does $patch: replace inside a container's resources map do?

Select your answer:

Show answer and explanation

Answer: Makes the patch's map the whole value, dropping keys the patch leaves out

Explanation

Strategic merge normally merges maps key by key, so leaving out limits.memory in a patch doesn't remove it. $patch: replace makes the patch's map the full value, and $patch: delete removes it.