3 ms·
Totally agree. K8s using yaml as a config format is a shit show. They should have used good ol’ JSON which has a lot smaller surface area. It has proper schema
by nojvek 7y ago
Totally agree. K8s using yaml as a config format is a shit show. They should have used good ol’ JSON which has a lot smaller surface area. It has proper schema definitions and a bazillion languages interop with it.
Then we can use whatever tools we want to generate and customize as needed.
YAML is ugly and doesn’t really solve a problem.
Jsonnet on the other hand is far more elegant templating language that solves a real need of generating json/yaml files.
Please please don’t use a text templating language. You’re in a world of hurt.
- hinkley 7y agoYears ago, someone showed me a python tool for build automation that was written in an imperative style although it was declarative underneath. Like a builder pattern. That looked pretty promising, but I have misremembered then name and so can’t find it again. I’d rather have something like that for infrastructure management.
- datashaman 7y agoPerhaps you mean cog? https://nedbatchelder.com/code/cog/ https://nedbatchelder.com/code/cog/