6 ms·
> Why are we generating a structured language (YAML), with a computer, by manually adding spaces to make the syntax valid? Yep, it sucks. It's not like nobody
by cybrexalpha 2y ago
> Why are we generating a structured language (YAML), with a computer, by manually adding spaces to make the syntax valid?
Yep, it sucks. It's not like nobody has tried to do better, but nothing else has the adoption of Helm. Ultimately text is, as always, universal.
If you want a fun fact: the communication between kubectl and the kube-api-server is actually in JSON, not YAML.
- movedx 2y ago> If you want a fun fact: the communication between kubectl and the kube-api-server is actually in JSON, not YAML. YAML is a super set of JSON. All JSON is valid YAML. No one uses YAML over the wire as you cannot guarantee the conversion from YAML to JSON as YAML is a super set and make contain things like anchors, which the JSON parser cannot handle. That's why :)
- zbentley 2y agoNobody tell the JSON::XS CPAN maintainer you said that: https://metacpan.org/pod/JSON::XS#JSON-and-YAML https://metacpan.org/pod/JSON::XS#JSON-and-YAML Or John Millikin: https://john-millikin.com/json-is-not-a-yaml-subset https://john-millikin.com/json-is-not-a-yaml-subset
- mst 2y agoOne of many reasons why most of the perl devs I know use the Cpanel::JSON::XS fork now.