Skip to content

Commit

Permalink
Merge pull request #1490 from fluxcd/fix-1485
Browse files Browse the repository at this point in the history
helm: Use the default transport pool to preserve proxy settings
  • Loading branch information
souleb authored Jun 14, 2024
2 parents 7e69f08 + b310a85 commit 09575db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/helm/registry/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand Down

0 comments on commit 09575db

Please sign in to comment.