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 →
helm get values shop -n shop --all | yq '.feature'to see the final merged value and its type.- Grep the templates for
default trueon that key. - Check the order of
-ffiles and any--setin the pipeline. - Fix the template to use
hasKeyor put the default invalues.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.
More on Values & Environments
Dev, staging and prod values files have drifted and nobody knows which settings differ intentionally. What do you do?IntermediateA deploy pipeline uses `--reuse-values` and a new chart version just broke production. Why, and what do you change?AdvancedYou need a per-environment image tag set by CI, while everything else lives in Git. How do you wire it?BeginnerDifferent clusters need different storage classes and ingress classes. How do you keep the chart portable?IntermediateA developer passes 20 `--set` flags in a shell script. What would you change?BeginnerYou must deploy to a region with an air-gapped cluster. How do you handle values and images?Advanced