6 ms·
While we're on spicy takes, k8s use of Yaml is an abomination and should have been vetoed early on. The data model they're using is too hierarchical and might h
by politelemon 3y ago
While we're on spicy takes, k8s use of Yaml is an abomination and should have been vetoed early on. The data model they're using is too hierarchical and might have been better off in XML or Json
- PaulHoule 3y agoThat's exactly what I am talking about. K8S is a disaster. It makes Parallel Sysplex for IBM Z look positively simple in comparison.
- jdougan 3y agoTIL about Parallel Sysplex. What a great name.
- dpkirchner 3y agoI 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.