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

Chart dependencies unavailable when sourced from github repo #7

Open
nflondo opened this issue Mar 14, 2023 · 2 comments
Open

Chart dependencies unavailable when sourced from github repo #7

nflondo opened this issue Mar 14, 2023 · 2 comments

Comments

@nflondo
Copy link

nflondo commented Mar 14, 2023

When chart is stored in github repo and has dependencies, the dependencies are not pull down by CI tool, and chart installation fails:
btp-dependency-error

The CI tool should run helm dependency build CHART in order to make dependencies available.
Example above is from BTP's Chronicle chart: https://github.com/btpworks/chronicle/tree/main/charts/chronicle

@samuelattwood
Copy link
Owner

The cause of this is that gzip charts pulled from Helm repos are packaged with their dependency charts, so when the gzip URL is fetched and unpacked the dependencies are already present. Charts stored unpacked in git repos often do not have the dependencies stored alongside them, and just link to them in the Chart.yaml.

Ultimately it would be good to implement a function that essentially performs helm dependency build in the CI tool. As a temporary fix though, you can leave the remote URLs for these git repos by setting RemoteDependencies: true in your upstream.yaml. The Helm install will then handle pulling down the dependency charts as needed.

@nflondo
Copy link
Author

nflondo commented Apr 17, 2023

Thanks ! Should RemoteDependencies: true option be documented in https://github.com/rancher/partner-charts ?

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

No branches or pull requests

2 participants