Skip to content

Commit

Permalink
Get Dial directly from InClusterConfig instead of TransportConfig
Browse files Browse the repository at this point in the history
client-go has dropped direct access to Dial from Transport, this commit
updates the usage to the upper layer, InClusterConfig.
- kubernetes/client-go@5dab9a0

Signed-off-by: Katyanna Moura <[email protected]>
  • Loading branch information
katyanna committed Oct 19, 2023
1 parent 136c7c5 commit da9b8b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubernetes/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (a *Adapter) NewInclusterConfigClientset(ctx context.Context) error {
IdleConnTimeout: idleConnTimeout,
Transport: &http.Transport{
Proxy: trCfg.Proxy,
DialContext: trCfg.Dial,
DialContext: cfg.Dial,
TLSClientConfig: tlsCfg,
TLSHandshakeTimeout: tlsHandshakeTimeout,
DisableKeepAlives: false,
Expand Down

0 comments on commit da9b8b3

Please sign in to comment.