4 ms·
I think helm's use of YAML makes it worse because it uses a text template library to manipulate structured data, and thus requires annoying stuff like {{indent}
by dpkirchner 3y ago
I think helm's use of YAML makes it worse because it uses a text template library to manipulate structured data, and thus requires annoying stuff like {{indent}} and {{nindent}} when you want to insert objects. To me, whenever I find myself using one of these indent functions I'm reminded of the well known pitfalls of using regex to parse HTML.
I don't know what I'd prefer, exactly. Probably JSON, or better yet JSON5.
- fireflash38 3y agoYou could just use JSON tho? Since valid JSON is valid YAML.
- dpkirchner 3y agoYeah, I often go that route when embedding objects in YAML. I haven't gone full JSON yet, but it's very tempting. A downside to that is having to convert back to YAML if you need support or want to easily diff against configs other folks have shared.