# An overlay's configMapGenerator sets behavior: merge for a ConfigMap that no base defines. What does kustomize build do?

Kustomize, Medium (Advanced), Generation. https://k8wiz.com/uquiz/an-overlays-configmapgenerator-sets-behavior-merge-for-a-configmap-that-no-base-defines-what-does-kustomize-build-do

- A. Creates the ConfigMap from the overlay's values alone
- B. Skips the entry and prints a warning on stderr
- C. Fails with an error that it cannot merge or replace
- D. Creates an empty ConfigMap and merges the values in

**Answer:** Fails with an error that it cannot merge or replace

**Explanation:** merge and replace need an existing ConfigMap with the same name and namespace. When none is found, the build stops with an error saying the id does not exist and it cannot merge or replace. Only create, the default, adds a new ConfigMap.
