Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

helm chart with dependency: how to package properly

I have a parent helm chart with some child chart defined as a dependency in requirements.yaml. Child chart is packaged and uploaded to some-repo.

Currently I'm doing:

  • run helm package parent-chart
  • upload parent-chart.tgz to some-repo

And when I'm trying to install via helm install some-repo/parent-chart I get only parent chart installed but not the child chart.

How do I need to package parent chart to be able to install it with the child chart together?

like image 380
abinet Avatar asked May 11 '17 17:05

abinet


2 Answers

One additional step should be added:

helm dep update parent-chart

it places child-chart.tgz into chart folder of parent chart and then packaging works

like image 191
abinet Avatar answered Sep 20 '22 20:09

abinet


You can now do this via

helm package --dependency-update parent-chart

and save yourself the separate line suggested by the other answer.

like image 34
jeremysprofile Avatar answered Sep 22 '22 20:09

jeremysprofile