Skip to content

Commit

Permalink
Merge pull request #98 from jakefhyde/39066-fix-proxies-on-validate
Browse files Browse the repository at this point in the history
  • Loading branch information
jakefhyde authored Oct 7, 2022
2 parents 99069d7 + 9f22484 commit 4fa9427
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/k8splan/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ func validateKC(ctx context.Context, config *rest.Config) error {
}

config.Transport = utilnet.SetTransportDefaults(&http.Transport{
Proxy: http.ProxyFromEnvironment,
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: tlsConfig,
DialTLSContext: func(_ context.Context, network, addr string) (net.Conn, error) {
conn, err = tls.Dial(network, addr, tlsConfig)
return conn, err
Expand Down

0 comments on commit 4fa9427

Please sign in to comment.