k8wiz
Kustomize
Medium
Generation

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

Select your answer:

Show answer and explanation

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.

Read more about Kustomize