# A patch target sets name: app. Does it also match a Deployment named app-worker?

Kustomize, Hard (Expert), Mutation. https://k8wiz.com/uquiz/a-patch-target-sets-name-app-does-it-also-match-a-deployment-named-app-worker

- A. No, target names are anchored regexes, so app means ^app$
- B. Yes, because target names are matched as prefixes
- C. Yes, because target names match anywhere in the name
- D. Only if the target also sets a labelSelector

**Answer:** No, target names are anchored regexes, so app means ^app$

**Explanation:** The name and namespace fields of a patch target are regular expressions anchored at both ends. Write name: app.* to match every name that starts with app, or select with labelSelector instead.
