Skip to content

Commit 9830e22

Browse files
committed
refactor(auth): oidc auth plugin import location
1 parent 714d2ba commit 9830e22

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

pkg/kubernetes-mcp-server/cmd/root.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ import (
1717
"strings"
1818
)
1919

20-
import (
21-
_ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
22-
)
23-
2420
var rootCmd = &cobra.Command{
2521
Use: "kubernetes-mcp-server [command] [options]",
2622
Short: "Kubernetes Model Context Protocol (MCP) server",

pkg/kubernetes/kubernetes.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"k8s.io/client-go/discovery/cached/memory"
1212
"k8s.io/client-go/dynamic"
1313
"k8s.io/client-go/kubernetes"
14+
_ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
1415
"k8s.io/client-go/rest"
1516
"k8s.io/client-go/restmapper"
1617
"k8s.io/client-go/tools/clientcmd"

0 commit comments

Comments
 (0)