From fc475f37fdb12039aec3a4fbf83e9bd742a00d9a Mon Sep 17 00:00:00 2001 From: Jason Witkowski Date: Tue, 3 Dec 2024 17:40:26 -0500 Subject: [PATCH] Allow for processing tls-server-name attribute in kubeconfig context 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, }, }, },