Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: templatize values #112

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

vbehar
Copy link
Contributor

@vbehar vbehar commented May 17, 2023

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
Copy link
Owner

arttor commented May 27, 2023

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.

None yet

2 participants