Skip to content

Commit

Permalink
fix(kubernetes): Fix User-Agent being unset during pod exec
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Oct 6, 2023
1 parent 5103a01 commit 925607a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/kubernetes/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 925607a

Please sign in to comment.