# An overlay's configMapGenerator uses the same name as one generated in the base, with no behavior set. What happens?

Kustomize, Hard (Expert), Generation. https://k8wiz.com/uquiz/an-overlays-configmapgenerator-uses-the-same-name-as-one-generated-in-the-base-with-no-behavior-set-what-happens

- A. The overlay's ConfigMap silently replaces the one from the base
- B. Both ConfigMaps are generated side by side, each with a different hash suffix
- C. The build fails, because the default behavior, create, needs a new name
- D. The keys from both ConfigMaps are merged automatically

**Answer:** The build fails, because the default behavior, create, needs a new name

**Explanation:** create is the default and only makes new ConfigMaps. To change one generated in the base, the overlay sets behavior: merge to add or override keys, or behavior: replace to swap the whole contents.
