Interview Prep/Helm/Templating: Go Templates & Sprig

Why does Helm say `wrong type for value; expected string; got map[string]interface {}`?

IntermediateConceptTemplating: Go Templates & Sprig
Answer

A function that expects a string (quote, trunc, printf "%s", b64enc) received a map, usually because a values key that used to be a scalar became a nested block, or . is not what you think inside with/range. Fix by pointing to the scalar field or using toYaml for blocks. helm template --debug prints the partially rendered output to locate the line.

All Helm questions Roadmap: Helm

More on Templating: Go Templates & Sprig