k8wiz
Kustomize
Hard
Troubleshooting

An env file used by a configMapGenerator has the line MODE="fast". What value does the generated ConfigMap hold for MODE?

Select your answer:

Show answer and explanation

Answer: "fast", with the quote characters kept in the value

Explanation

Kustomize splits each env file line at the first = and keeps the rest exactly as written, quotes included. The literals field is different: it strips one pair of matching surrounding quotes, so MODE="fast" under literals gives fast. The env file is not parsed as YAML.

Read more about Kustomize