4 ms·
How many folks are familiar with http://jsonnet.org/ http://jsonnet.org/ - there are two implementations: - One in go - https://github.com/google/go-jsonnet ht
by malkia 8y ago
How many folks are familiar with http://jsonnet.org/ http://jsonnet.org/ - there are two implementations:
- One in go - https://github.com/google/go-jsonnet https://github.com/google/go-jsonnet
- One in C++ - https://github.com/google/jsonnet https://github.com/google/jsonnet
AFAIK, ksonnet is the primary user - https://ksonnet.io/ https://ksonnet.io/ - which to any ex-googler be the more familiar way of dealing with the borg configs.
HJSon seems nice, as once in a while how to put a comment in JSON comes, and everyone starts bike-shedding their favourite solution, that leaves lots questions... of compatibility. For example, we tend to use "_comment": "", but I know that's bound to break somewhere, soon or later.
There is also https://json5.org/ https://json5.org/
- fajran 8y agoWe use jsonnet at work to define almost all of our k8s config. With it we can write a base config and extend it to be more environment (prod, staging, integration test) specific. Very helpful to avoid copying and pasting configs to multiple places