This repository has been archived by the owner on Aug 22, 2022. It is now read-only.
Add option to allow usage of Helm Templates in all values of values.yaml
file items
#131
Labels
enhancement
New feature or request
Details
Helm chart name: common
Describe the solution you'd like:
By default template variables like
{{ .Release.Name }}
and{{ .Chart.Name }}
are not working invalues.yaml
files (here is some issues about this: helm/helm#3558, helm/helm#2492), and that's sad...But seems we can get rid of this limitation via implementing parser of each value in
common
library!Here is an example of adding support for template conversion in value from
values.yaml
file of manually defined keypersistence.config.existingClaim
, described intemplates/common.yaml
:Having this, we can use templates inside value of that key directly in
values.yaml
file, like this:And via same way we can loop through each of the keys in passed
values.yaml
file and make the template conversion for each value (or only defined ones)!So we can add this as opt-in feature that should be enabled via some key, for example like this - global switcher for all values:
and only for selected values:
What do you think about this idea?
The text was updated successfully, but these errors were encountered: