From da9b8b3f83221da4c74ef246177b2cafbf16447c Mon Sep 17 00:00:00 2001 From: Katyanna Moura Date: Thu, 19 Oct 2023 12:03:14 +0200 Subject: [PATCH] Get Dial directly from InClusterConfig instead of TransportConfig client-go has dropped direct access to Dial from Transport, this commit updates the usage to the upper layer, InClusterConfig. - https://github.com/kubernetes/client-go/commit/5dab9a0b8438c16fe1572158c63b716e641ebeb4 Signed-off-by: Katyanna Moura --- kubernetes/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/client.go b/kubernetes/client.go index 63bded5e..ba0d6305 100644 --- a/kubernetes/client.go +++ b/kubernetes/client.go @@ -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,