k8wiz
Kustomize
Medium
Mutation

A strategic merge patch lists one container with a new image. What happens to the base's other containers?

Select your answer:

Show answer and explanation

Answer: They stay as they are, because containers are merged by name

Explanation

Strategic merge patches know that containers are keyed by name, so a patch with name: app and a new image only changes that container. A JSON 6902 patch addresses list items by index instead, which breaks when the order changes.