Jsonnet – A data templating language
jsonnet.org
Jsonnet – A data templating language
1–10 of 90 posts
Re: Jsonnet – A data templating language
#2Re: Jsonnet – A data templating language
#3No thanks I'll just write JavaScript
This is in fact how I manage Kubernetes manifests.
I use this package: https://www.npmjs.com/package/kubernetes-models
Then I write normal TypeScript code to create Kubernetes objects/resources.
Then I render it to JSON and feed to kubectl.
The beauty of this solution is that it’s OOP and DRY.
Re: Jsonnet – A data templating language
#4No thanks I'll just write JavaScript
I read everything and I still don’t understand why.
Re: Jsonnet – A data templating language
#5Re: Jsonnet – A data templating language
#6Re: Jsonnet – A data templating language
#7We have just had an article hitting nearly the top on not to use JSON for config https://arp242.net/weblog/json_as_configuration_files-_pleas...
I wonder if folks had had experience using it for kubernetes configs like https://jsonnet.org/articles/kubernetes.html
Re: Jsonnet – A data templating language
#8Re: Jsonnet – A data templating language
#9Re: Jsonnet – A data templating language
#10Do I really want imperative code in my config files? And if so, why not just use vanilla JS?