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.
More on Templating: Go Templates & Sprig
What template language does Helm use?BeginnerWhat does the dot (`.`) mean in a Helm template?BeginnerWhat is `$` and when do you need it?IntermediateHow does whitespace control (`{{-` and `-}}`) work?BeginnerHow do `if`, `else if` and `else` evaluate truthiness?BeginnerWhat do `and`, `or`, `not`, `eq`, `ne`, `lt`, `gt` look like in Helm?Beginner