Fix installation of charts from repos with URL containing parameters when repo is provided with --repo flag.

Signed-off-by: Topi Kettunen <topi.kettunen@polarsquad.com>
pull/9205/head
Topi Kettunen 5 years ago
parent 6760dda91f
commit ee397bdd99

@ -275,6 +275,10 @@ func ResolveReferenceURL(baseURL, refURL string) (string, error) {
return "", errors.Wrapf(err, "failed to parse %s as URL", baseURL)
}
if parsedBaseURL.RawQuery != "" {
refURL = fmt.Sprintf("%s?%s", refURL, parsedBaseURL.RawQuery)
}
parsedRefURL, err := url.Parse(refURL)
if err != nil {
return "", errors.Wrapf(err, "failed to parse %s as URL", refURL)

Loading…
Cancel
Save