google / go-jsonnet

Apache License 2.0
1.61k stars 231 forks source link

Interest for import toml ? #734

Open davidovich opened 11 months ago

davidovich commented 11 months ago

At work we use mainly jsonnet to describe Kubernetes manifests, and a large swath of code also uses Toml configuration (notably influxdb and telegraf config).

Interoperability with jsonnet is currently hindered if we don't have a complete read, modify write (which we already have in the std.manifestTomlEx function) cycle from within jsonnet.

We would like to import TOML in much same way as we enjoy importing YAML through the std.parseYaml() API.

Would there be interest in an implementation of an std.parseToml() API ?

micahnz commented 3 months ago

This is something I would use, I currently use parseYaml to make the commonly changeable params for our kube manifests more readable and friendly for the members of our team but I would much rather use toml for these files.

std.parseToml() would fit nicely, like you say, we can already have manifestTomlEx so would be nice to close that loop so we can work with toml properly.