Interview Prep/Helm/Values & Precedence

How does Helm treat a values key set to an empty string vs not set?

IntermediateConceptValues & Precedence
Answer

Both are "empty" for if, with, default and required. hasKey distinguishes them: an empty string is present, an absent key is not. In JSON Schema, minLength: 1 rejects the empty string, while required only checks presence. For a mandatory password, use both: schema required plus minLength, and template required as a safety net.

All Helm questions Roadmap: Helm

More on Values & Precedence