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

chartsync: use target helm version for download #145

Merged
merged 2 commits into from
Dec 13, 2019

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Dec 12, 2019

No description provided.

This avoids having to shell out to the `helm2` binary while still
maintaining the same functionality. It aligns with the approach
used in `helm/v3`.
@hiddeco hiddeco added the helm v3 Issue or PR related to Helm v3 label Dec 12, 2019
@hiddeco hiddeco force-pushed the helm-v3/chart-download branch 2 times, most recently from 2fd25cc to 75a9689 Compare December 12, 2019 22:26
This commit achieves three things:

1. The logic for resolving the full chart URL has been moved to the
   client version implementations, adding two new methods `Pull` and
   `PullWithRepoURL`. The latter implements the logic for retrieving
   the full chart URL that was earlier present in the `chartsync`
   package itself. This ensures the accurate repositories index is
   used when we look for chart repository credentials.
2. The newly introduced `Pull` method makes use of the
   `downloader.ChartDownloader` for that Helm version. This makes it
   easier to integrate e.g. the pull of OCI charts once this feature
   becomes available in Helm v3. It also provides some groundwork for
   working with named repositories which we may want to use later on
   when we have introduced the Custom Resource for manging Helm
   repositories, as it now understands the `repo/name` format.
3. The chartsync now maintains a chart cache per Helm version by
   appending the `helm.Version()` to the `base`.
@hiddeco hiddeco changed the title chartsync: use target helm version for download chartsync: use target helm version for download Dec 13, 2019
@hiddeco hiddeco merged commit e9d8356 into helm-v3-dev Dec 13, 2019
@hiddeco hiddeco deleted the helm-v3/chart-download branch December 13, 2019 13:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
helm v3 Issue or PR related to Helm v3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants