cyclops icon indicating copy to clipboard operation
cyclops copied to clipboard

Support for `_helpers.tpl` files

Open KaradzaJuraj opened this issue 1 year ago • 5 comments

Helm charts can have files such as _helpers.tpl. These files define resources commonly used among multiple YAMLs. To see an example of this file, you can use the command helm create <name_of_your_new_chart>, and in the templates subfolder, you should find a _helpers.tpl file.

With Cyclops, it seems that _helpers.tpl files are not working properly → the labels are generated but not the values app.kubernetes.io/name: {{ include "name_of_your_new_chart.name" . }} will equal app.kubernetes.io/name: (empty)

KaradzaJuraj avatar Apr 08 '24 11:04 KaradzaJuraj

@KaradzaJuraj I would like to take this issue.

Sheikh-Abubaker avatar Apr 21 '24 11:04 Sheikh-Abubaker

Awesome, feel free to post updates and questions here.

KaradzaJuraj avatar Apr 21 '24 12:04 KaradzaJuraj

With Cyclops, it seems that _helpers.tpl files are not working properly → the labels are generated but not the values app.kubernetes.io/name: {{ include "name_of_your_new_chart.name" . }} will equal app.kubernetes.io/name: (empty)

@KaradzaJuraj I have a question, do you want to include a _helpers.tpl under templates directory for the cyclops chart ?

Sheikh-Abubaker avatar Apr 27 '24 20:04 Sheikh-Abubaker

Hey @Sheikh-Abubaker, the issue is about supporting .tpl files while rendering a template into YAML (here)

petar-cvit avatar Apr 28 '24 17:04 petar-cvit

I am doing some refactoring which will fix this issue as well

petar-cvit avatar Apr 30 '24 20:04 petar-cvit