Replies: 2 comments 2 replies
-
|
I think this is cool, I would like to have a wider discussion on what is the approach we would like to have in the end. E.g. do we want jsonnet or something else, support multiple, or allow Go templates, etc. |
Beta Was this translation helpful? Give feedback.
-
|
We've started using jsonnet to template the configuration before running a cluster template sync. In an initial MVP we planned on using kustomize to generate all resources but were hindered by the lack of apiVersion, kind and metadata.name fields not being available on all resources. @smira it might be great to start supporting the KRM as general schema. This way, commodity tooling (be it Kustomize, Helm or even Tanka) can be used to generate plain YAML which is then piped into the omnictl cluster template. Might be too much to ask for, but a kubernetes-compatible API would be gold and allow gitops control patterns out of the box with e.g. fluxcd. Thinking of e.g. https://github.com/kcp-dev/kcp here ;-) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to use jsonnet for cluster templates.
I already got this to work here: main...fsgh42:omni:feat/jsonnet-support
I'd like to ask if support is desired and if I should create a PR for this?
Might solve #1750, at least partially.
If support is desired, you can implement this dumb or thoroughly, the commit I linked shows the dumb way.
I'd prefer the thorough way and already gave it a shot - but that blows up the size of the change, as aside from the required code changes you need to change/add tests. It adds the ability to add more file formats in the future, though.
Beta Was this translation helpful? Give feedback.
All reactions