Skip to content

Translate to/from other templating languages #1763

Answered by verdverm
AntoineThebaud asked this question in Ideas
Discussion options

You must be logged in to vote

With regards to Helm, as an example of the complexities

  1. you'd have to parse and work with Go's text/template AST
  2. There are a number of dynamic values and custom functions
  3. I think they support JSONSchema for the values file now, so that might be another option to try
  4. Writing a CUE plugin for Helm might be a path for adoption there
  5. We'd probably want an "official" k8s import that everyone imports rather than generates, it needs some customization for things like Port (which doesn't have validation because of custom (en/de)coders because it can be either a string or an int)

Generally, I'd expect that the ecosystem can produce tools like this, rather than putting everything into the cue too…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AntoineThebaud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants