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

Kustomize, Hard (Expert), Mutation. https://k8wiz.com/uquiz/a-patch-changes-the-metadataname-of-its-target-and-the-build-fails-what-allows-the-rename

- A. Adding a nameSuffix field to the patch file
- B. Moving the patch to patchesStrategicMerge
- C. Setting generatorOptions.disableNameSuffixHash
- D. Setting options.allowNameChange: true on that patch

**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.
