Interview Prep/Helm/Values & Environments

A value that should be `false` in prod keeps rendering as enabled. Where do you look?

IntermediateScenarioValues & Environments
Answer

Situation read → Classic causes: default true .Values.x, --set-string x=false (the string "false" is truthy), or a later values file setting it back.

What I'd do →

  1. helm get values shop -n shop --all | yq '.feature' to see the final merged value and its type.
  2. Grep the templates for default true on that key.
  3. Check the order of -f files and any --set in the pipeline.
  4. Fix the template to use hasKey or put the default in values.yaml; use --set (not --set-string) for booleans.

Why → Helm's emptiness rules treat false as unset in default.

Interview tip → Quote the default boolean trap; interviewers love it.

All Helm questions Roadmap: Helm

More on Values & Environments