Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

helm/v2: index repositories before fetching chart #181

Merged
merged 2 commits into from
Jan 8, 2020

Conversation

stefanprodan
Copy link
Member

@stefanprodan stefanprodan commented Jan 7, 2020

Fix: #164

Helm v2 ResolveChartVersion needs to go through each repo cache file to find a matching URL, so we need to download all indexes before attempting to download charts.

Ref: https://github.com/helm/helm/blob/release-2.16/pkg/downloader/chart_downloader.go#L158

@hiddeco
Copy link
Member

hiddeco commented Jan 7, 2020

@stefanprodan can you add a reference to the comment in the Helm code base that made this clear to you? This will probably help in the future when someone is looking for additional context around this (somewhat inefficient) piece of code.

@stefanprodan stefanprodan force-pushed the fix-helmv2-dowloader branch 4 times, most recently from 2e277a2 to b2521c1 Compare January 7, 2020 21:16
@stefanprodan
Copy link
Member Author

@hiddeco I've added a link to the Helm source code.

@hiddeco hiddeco changed the title Helmv2: Download all repo indexes before install helm/v2: index repositories before fetching chart Jan 7, 2020
@hiddeco hiddeco merged commit 129088c into master Jan 8, 2020
@hiddeco hiddeco deleted the fix-helmv2-dowloader branch January 8, 2020 00:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chart lookup fails and appears to be looking in the wrong cache
2 participants