Kustomize
Hard
Integration
A helmCharts entry sets replicaCount: 2 in valuesInline and lists a values file with replicaCount: 3 in additionalValuesFiles. What does Helm render?
Select your answer:
Show answer and explanation
Answer: 3, because the extra file is passed last
Explanation
Kustomize merges valuesInline into the values file, writes the result to a temporary file and passes it to Helm with -f. Each additionalValuesFiles entry follows as another -f, and Helm lets later files win. valuesMerge only controls how inline values combine with valuesFile, not with the additional files.
More hard Kustomize questions
- Why can a component patch resources defined in the overlay that includes it, when a base can't?
- Which field path selects the value of the env var SERVICE_HOST in the container named app, for a replacement target?
- A production overlay lists a remote base with ?ref=main. What's the risk?
- A strategic merge patch adds one item to a list in a custom resource, but the build replaces the whole list. Why?
- A custom resource refers to a generated ConfigMap by name, but after the build it still uses the name without the hash suffix. Why?
- An overlay's configMapGenerator uses the same name as one generated in the base, with no behavior set. What happens?