Helm / Editorial solution guide
Investigate false or zero replaced by a Helm default
Trace values precedence and default function semantics when a rendered chart ignores an intentional false or zero.
Read-only knowledge base · No public comments
Recognize the symptoms
A fictional chart consumer supplies enabled: false, but the rendered manifest enables the feature. Another consumer supplies zero replicas and sees one. Both inputs may be valid, but the rendered result conflicts with the intended contract.
Understand the likely causes
- The chart may use default with a fallback that replaces values Helm treats as empty, including false and numeric zero. A higher-precedence values source or a type conversion can produce a similar symptom and must be investigated separately.
Capture the input and expected behavior
Record chart and Helm versions, release context, all values files and overrides in their actual order, and the expected behavior. Use synthetic nonsecret values for reproduction. Verify whether false and zero are allowed by the chart schema and operational policy; disabling a component or scaling to zero is not always safe.
Trace the effective value
Inspect the merged input and its type before looking at the rendered resource. A quoted string such as "false" is not the boolean false. Compare the exact key path and precedence, including environment-specific overrides. If the effective input differs from the supplied file, correct that source or selection before changing the template.
Inspect the template fallback
Locate the expression producing the field. Helm’s default treats false and numeric zero as empty, so a fallback may replace an intentional value. If the contract permits those values, put the ordinary default in the values file and render the value directly, or use an explicit presence check when absence has a distinct meaning. Review the chart schema and all callers before changing the contract.
Review the resulting manifest
Render a synthetic chart in an isolated environment and compare the exact field and type for missing, false, true, zero and positive values as applicable. Test an invalid type against schema validation. Inspect the full diff for unrelated changes and do not apply resources until the change is reviewed. A correct render does not establish workload readiness.
Verify the fix
Reproduce the original false or zero case with the corrected chart and confirm that the resulting field preserves the agreed value. Also verify the missing-value fallback and an invalid input; record the chart version and sanitized inputs.
Check the operational consequence separately in an authorized lab, including capacity or feature behavior. Escalate if callers rely on the previous fallback; changing semantics can affect existing releases.
Keep it from recurring
- Document the values contract and schema. Test false, zero, absence and overrides, and review rendered output and workload impact.