google / go-jsonnet

Apache License 2.0
1.61k stars 231 forks source link

Requests: Tool to statically expand import/importstr expressions and consolidate Jsonnet files #762

Open takahisa opened 2 months ago

takahisa commented 2 months ago

I want to distribute Kubernetes manifests written in Jsonnet, while maintaining parameterization, similar to Helm Charts. However, the Jsonnet files I handle are very large and complex, importing various libsonnet files and configuration files such as JSON and YAML, which means I need to include many files in the distribution package. It would be ideal if the Jsonnet files containing multiple import/importstr could be statically expanded and consolidated into a single file. Is there any plan to bundle such a tool as a sub-tool in go-jsonnet?