yaml-language-server icon indicating copy to clipboard operation
yaml-language-server copied to clipboard

Support for .tpf (Helm chart Yaml-based template files)

Open mickaelistria opened this issue 5 years ago • 7 comments

It seems like Helm Chart files are basically Kubernetes yaml files with templating capability in {{...}} blocks. It would be nice if Yaml Language Server could provide support for those files (by pre-setting schema, allowing validation/completion in {{...}} and so on.

mickaelistria avatar Jan 21 '20 07:01 mickaelistria

What is needed for this to be added - how we can help? There is https://github.com/Azure/vscode-kubernetes-tools/blob/master/syntaxes/helm.tmLanguage.json which VSCode uses to correctly highlight Helm template syntax.

nklmilojevic avatar May 31 '21 06:05 nklmilojevic

There seems to be a tree-sitter grammar for go templates. It might be useful here.

With tree-sitter and this grammar, the template blocks can be fully parsed into an AST that could be used for functionality beyond highlighting, such as diagnostics, autocomplete, etc.

https://github.com/ngalaiko/tree-sitter-go-template

valorl avatar Jul 27 '21 22:07 valorl

It would be nice to make this work with templates in general and not just helm templates, {{...}} is the default delimiter set but it can be customised, and we also have Jinja and ERB....

luisdavim avatar Aug 11 '22 12:08 luisdavim

Just revisiting after nearly a year. Any new solutions or workarounds? @luisdavim any thoughts?

kekscode avatar Jul 28 '23 13:07 kekscode

Would be nice to see this feature.

Kerwood avatar Jul 28 '23 13:07 Kerwood