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.
More medium Kustomize questions
- Why can adding a label through commonLabels make kubectl apply fail for an existing Deployment?
- How do you add a label to every resource without changing any selectors?
- What does an images entry with name: nginx and a digest: sha256:... value do?
- A strategic merge patch lists one container with a new image. What happens to the base's other containers?
- How do you remove a container from a base Deployment with a strategic merge patch?
- When is a JSON 6902 patch a better choice than a strategic merge patch?