# A replacement's source sets kind: ConfigMap and name: cm.*, and the build fails with "nothing selected by". Why?

Kustomize, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/a-replacements-source-sets-kind-configmap-and-name-cm-and-the-build-fails-with-nothing-selected-by-why

- A. Source selectors need an apiVersion as well as a kind to match
- B. The source name is matched literally, unlike a target's select
- C. Regex names in a source only work when a labelSelector is set
- D. The source must also set a fieldPath before it can be selected

**Answer:** The source name is matched literally, unlike a target's select

**Explanation:** Target select and reject fields accept regular expressions, but the source compares group, version, kind, name and namespace as plain strings. No ConfigMap is literally named cm.*, so nothing matches. The source must resolve to exactly one resource, and two matches fail with "multiple matches for selector".
