Eline @eliine.dev · Oct 31

There are some clever ideas in play too. Like creating a re-usable object, then easily adding a field to an object instead of overwriting it by using the + operator. With this and the more advanced functions you can pretty much create any JSON structure you need 🪄

0 likes 1 replies

?

Replies

Eline · Oct 31

Shared functionality can be put in libsonnet files, which are essentially the same as jsonnet except they are not executed. So if you want to create a reusable library, that is the way to go. Kartverket’s ArgoKit is a neat example of a small jsonnet library for Kubernetes.