Commit fbda50a4 authored by Caleb Delnay's avatar Caleb Delnay Committed by Matthew Fisher

Fix credentials not set for ResolveChartVersion default HTTP client (#4662)

Fixes Issue #4299 and Issue #4445
Signed-off-by: 's avatarCaleb Delnay <calebdelnay@gmail.com>
parent 4dd90475
......@@ -170,8 +170,11 @@ func (c *ChartDownloader) ResolveChartVersion(ref, version string) (*url.URL, ge
if err != nil {
return u, nil, err
}
getter, err := getterConstructor(ref, "", "", "")
return u, getter, err
g, err := getterConstructor(ref, "", "", "")
if t, ok := g.(*getter.HttpGetter); ok {
t.SetCredentials(c.Username, c.Password)
}
return u, g, err
}
return u, nil, err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment