The yaml document from hell[1] needed three changes ("*.html", "*.png", "!.git") to be parsed by yq at all. "Norway problem" is not a problem as no was converted to a quoted string. Unquoted strings in "allow_postgres_versions" part were not quoted by yq.

[1] https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-fr...

I fully agree with the author's statement that "templating YAML is a terrible idea". Helm charts are somewhat finicky to author.

And I don't much like them as an end-user either, at least where there's a decent operator as an alternative.

(The definition of "decent" starts with "good documentation", looking at you Prometheus operator.)

Templating yaml with a text templating language like Helm's templating language is a terrible idea. Templating objects and serializing them to Yaml (with input also being Yaml) I find quite nice: https://github.com/con2/emrichen