k8wiz
Kustomize
Hard
Mutation

A patch changes the metadata.name of its target, and the build fails. What allows the rename?

Select your answer:

Show answer and explanation

Answer: Setting options.allowNameChange: true on that patch

Explanation

Kustomize refuses a patch that renames its target unless the patch entry sets options.allowNameChange. options.allowKindChange does the same for changing the kind.