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

Fixes Issue #4299 and Issue #4445

Signed-off-by: Caleb Delnay <calebdelnay@gmail.com>
pull/4668/head
Caleb Delnay 6 years ago committed by Matthew Fisher
parent 4dd9047586
commit fbda50a452

@ -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
}

Loading…
Cancel
Save