Live data from Hacker News

Jsonnet – A data templating language

jsonnet.org

1–10 of 90 posts

Re: Jsonnet – A data templating language

#3

No thanks I'll just write JavaScript

Exactly my thoughts. I don’t see how it’s better than JS or TypeScript. I can render any object into JSON.

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

#7
post #5

We 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...

That's the reason I posted this, since this is kind of using, without the drawbacks (of not having comments etc)

I wonder if folks had had experience using it for kubernetes configs like https://jsonnet.org/articles/kubernetes.html

Post reply on HN