Update chart_downloader.go

Signed-off-by: Jeff van Dam <66410239+JvD-Ericsson@users.noreply.github.com>
pull/11726/head
Jeff van Dam 2 years ago committed by GitHub
parent 1689248274
commit 13b9c679f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -183,11 +183,11 @@ func (c *ChartDownloader) getOciURI(ref, version string, u *url.URL) (*url.URL,
// //
// A version is a SemVer string (1.2.3-beta.1+f334a6789). // A version is a SemVer string (1.2.3-beta.1+f334a6789).
// //
// - For fully qualified URLs, the version will be ignored (since URLs aren't versioned) // - For fully qualified URLs, the version will be ignored (since URLs aren't versioned)
// - For a chart reference // - For a chart reference
// - If version is non-empty, this will return the URL for that version // * If version is non-empty, this will return the URL for that version
// - If version is empty, this will return the URL for the latest version // * If version is empty, this will return the URL for the latest version
// - If no version can be found, an error is returned // * If no version can be found, an error is returned
func (c *ChartDownloader) ResolveChartVersion(ref, version string) (*url.URL, error) { func (c *ChartDownloader) ResolveChartVersion(ref, version string) (*url.URL, error) {
u, err := url.Parse(ref) u, err := url.Parse(ref)
if err != nil { if err != nil {

Loading…
Cancel
Save