Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pass variable down to dependency helm chart

I have a helm chart with an optional component. It seems that the preferred way to support optional components is to break them into separate charts and toggle them with tags.

I tried this, but my optional component needs to know a variable from the rest of the chart (the address of a particular service). This causes things to break

Error: render error in "subchart/foo-deployment.yaml": 
template: superchart/templates/_helpers.tpl:14:40: 
executing "superchart.variable <.Values.variable...>: 
can't evaluate field name in type interface {}
like image 219
MRocklin Avatar asked Dec 04 '17 19:12

MRocklin


Video Answer


1 Answers

I believe you can do this at install time for the chart

helm install --set option1=value1 --name my-release stable/dask

For more info: https://docs.helm.sh/helm/#helm-install

Issue: https://github.com/kubernetes/helm/issues/944

PR: https://github.com/kubernetes/helm/pull/982

like image 89
quasiben Avatar answered Oct 02 '22 17:10

quasiben