Merge pull request #1490 from fluxcd/fix-1485
helm: Use the default transport pool to preserve proxy settings
This commit is contained in:
commit
09575db5ca
|
@ -69,10 +69,10 @@ func newClient(credentialsFile string, tlsConfig *tls.Config, insecureHTTP bool)
|
|||
opts = append(opts, registry.ClientOptPlainHTTP())
|
||||
}
|
||||
if tlsConfig != nil {
|
||||
t := http.DefaultTransport.(*http.Transport).Clone()
|
||||
t.TLSClientConfig = tlsConfig
|
||||
opts = append(opts, registry.ClientOptHTTPClient(&http.Client{
|
||||
Transport: &http.Transport{
|
||||
TLSClientConfig: tlsConfig,
|
||||
},
|
||||
Transport: t,
|
||||
}))
|
||||
}
|
||||
if credentialsFile != "" {
|
||||
|
|
Loading…
Reference in New Issue