From 925607a1d1c36cac297b4ff43ad3ea12922ac96b Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Fri, 6 Oct 2023 15:06:27 -0500 Subject: [PATCH] fix(kubernetes): Fix User-Agent being unset during pod exec --- internal/kubernetes/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/kubernetes/client.go b/internal/kubernetes/client.go index bbcbf4b0..d974b863 100644 --- a/internal/kubernetes/client.go +++ b/internal/kubernetes/client.go @@ -48,6 +48,8 @@ func NewClient(kubeconfig, context, namespace string) (config KubeClient, err er return config, err } + config.ClientConfig.UserAgent = rest.DefaultKubernetesUserAgent() + if namespace == "" { config.Namespace, _, err = configLoader.Namespace() if err != nil {