fix(install): correct append tls config.

Signed-off-by: James McElwain <jmcelwain@gmail.com>
(cherry picked from commit bf5c0ae7f4)
release-3.1
James McElwain 6 years ago committed by Matt Farina
parent ecf50b3763
commit 7397096823
No known key found for this signature in database
GPG Key ID: 9436E80BFBA46909

@ -183,7 +183,7 @@ func (c *ChartDownloader) ResolveChartVersion(ref, version string) (*url.URL, er
getter.WithURL(rc.URL), getter.WithURL(rc.URL),
) )
if rc.CertFile != "" || rc.KeyFile != "" || rc.CAFile != "" { if rc.CertFile != "" || rc.KeyFile != "" || rc.CAFile != "" {
getter.WithTLSClientConfig(rc.CertFile, rc.KeyFile, rc.CAFile) c.Options = append(c.Options, getter.WithTLSClientConfig(rc.CertFile, rc.KeyFile, rc.CAFile))
} }
if rc.Username != "" && rc.Password != "" { if rc.Username != "" && rc.Password != "" {
c.Options = append( c.Options = append(

Loading…
Cancel
Save