by kortex · 3y ago · 0 comments
Maybe we need a new configuration format...
ducks
Actually I think something in the space of JSON5, Jsonnet, GCL, HCL, CUE, etc, will be the one to win out in the long run. JSON-but-fix-most-of-the-warts.
Then there's things which almost sit between fully declarative and turing-complete. Maybe Dhall, if it picks up a few more language implementations. Or CEL.
IMO Jsonnet, CUE, etc are just in a different category of complexity since they include code and require a full-blown interpreter to read.
- No footguns (compared to the alternatives)
- Basic text-templating
- Can do structural manipulations of data. As opposed to many other config-generators that only
do string-interpolation of text. Helm and j2.... kill me please, who ever thought this was a good idea
- Basic looping, transformations and function calls. Without falling into the full imperative
programming language trap. Configuration is still deterministic and directed.
- Supports loading data from other sources
- Supports comments