Is there a way to use Helm 3's new library charts without needing to involve `helm dependency update`?

11/19/2019

The use case is as follows:

overall-concern/
  charts/
    cloudformation-chart/
    kubernetes-chart/
    shared-library/

Both the Cloudformation and Kubernetes charts rely on the shared library. If I specify it as a dependency in those charts, however, I need to do helm dependency update and it will be copied into those charts' charts/ subdirectory and a Chart.lock file will be generated. That seems unnecessary.

On the other hand, if I symlink the chart:

overall-concern/
  cloudformation-chart/
    charts/
      shared-library -> ../../shared-library

It works, but I receive a warning when running helm template that there are symlinks in the path, leading me to think that this is not intended or is otherwise deprecated:

walk.go:74: found symbolic link in path: ... (paths elided) ...

Is there a blessed solution that will let me use a local chart without treating it as a formal "dependency" in Helm 3?

-- asthasr
kubernetes
kubernetes-helm

0 Answers