Skip to content

Commit 09575db

Browse files
authored
Merge pull request #1490 from fluxcd/fix-1485
helm: Use the default transport pool to preserve proxy settings
2 parents 7e69f08 + b310a85 commit 09575db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/helm/registry/client.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ func newClient(credentialsFile string, tlsConfig *tls.Config, insecureHTTP bool)
6969
opts = append(opts, registry.ClientOptPlainHTTP())
7070
}
7171
if tlsConfig != nil {
72+
t := http.DefaultTransport.(*http.Transport).Clone()
73+
t.TLSClientConfig = tlsConfig
7274
opts = append(opts, registry.ClientOptHTTPClient(&http.Client{
73-
Transport: &http.Transport{
74-
TLSClientConfig: tlsConfig,
75-
},
75+
Transport: t,
7676
}))
7777
}
7878
if credentialsFile != "" {

0 commit comments

Comments
 (0)