3 ms·
JSON is terrible to write by hand. YAML is terrible too. There should be an official and sane language which will map to YAML 1:1. We don't write Java code in Y
by vbezhenar 4y ago
JSON is terrible to write by hand. YAML is terrible too. There should be an official and sane language which will map to YAML 1:1. We don't write Java code in YAML for a reason.
- jrockway 4y agoJsonnet is the language that maps to YAML 1:1. The output happens to look like JSON, but JSON is a subset of YAML. I've used Jsonnet for non-k8s stuff (envoy bootstrap configs), and it is really great. For example, this: https://github.com/pachyderm/pachyderm/blob/master/etc/generate-envoy-config/envoy.jsonnet https://github.com/pachyderm/pachyderm/blob/master/etc/gener... generates this: https://github.com/pachyderm/pachyderm/blob/master/etc/helm/pachyderm/envoy.json https://github.com/pachyderm/pachyderm/blob/master/etc/helm/...