Skip to content

feat: templatize values#112

Open
vbehar wants to merge 1 commit into
arttor:mainfrom
vbehar:templatize-values
Open

feat: templatize values#112
vbehar wants to merge 1 commit into
arttor:mainfrom
vbehar:templatize-values

Conversation

@vbehar

@vbehar vbehar commented May 17, 2023

Copy link
Copy Markdown
Contributor

instead of using raw values - such as {{ .Values.some.thing }} - let's wrap them with the tpl function.

the previous example would then be rendered as {{ tpl (.Values.some.thing) $ }}

So that we can reference other values from inside our values for example.

instead of using raw values - such as `{{ .Values.some.thing }}` - let's wrap them with the `tpl` function.

the previous example would then be rendered as `{{ tpl (.Values.some.thing) $ }}`

So that we can reference other values from inside our values for example.
@arttor

arttor commented May 27, 2023

Copy link
Copy Markdown
Owner

Hi @vbehar! Thank you for your contribution. The proposal looks very interesting but i see several potential problems:

  • the change is quite big and it is better to hide it under a feature flag to not surprise users after upgrading to a new version
  • overusing tpl function may lead to performance issues see
  • in the PR, not all template values are wrapped into tpl. How to decide which one should be wrapped?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants