From f0ebf88a25f264697763baea0abcee820d71f76c Mon Sep 17 00:00:00 2001 From: Jason Witkowski Date: Wed, 4 Dec 2024 00:31:25 -0500 Subject: [PATCH] Allow for processing tls-server-name attribute in kubeconfig context (#587) Signed-off-by: Jason Witkowski --- pkg/test/utils/kubernetes.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/test/utils/kubernetes.go b/pkg/test/utils/kubernetes.go index 4c703691..d2ffd062 100644 --- a/pkg/test/utils/kubernetes.go +++ b/pkg/test/utils/kubernetes.go @@ -1290,6 +1290,7 @@ func Kubeconfig(cfg *rest.Config, w io.Writer) error { Server: cfg.Host, CertificateAuthorityData: cfg.TLSClientConfig.CAData, InsecureSkipTLSVerify: cfg.TLSClientConfig.Insecure, + TLSServerName: cfg.TLSClientConfig.ServerName, }, }, },