From 2441e469502faac6287d4cec0f72a67aac455eab Mon Sep 17 00:00:00 2001 From: Ludo Stellingwerff Date: Thu, 7 Nov 2024 15:50:20 +0100 Subject: [PATCH] Fix the "Standalone"-mode of oidc-login in the wrapped kubectl application. This fixes: 'error: no Auth Provider found for name "oidc"' when trying to run any subcommands in kubectl that require a valid server login. Signed-off-by: Ludo Stellingwerff --- pkg/kubectl/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/kubectl/main.go b/pkg/kubectl/main.go index dfcab9292d..775382b3f2 100644 --- a/pkg/kubectl/main.go +++ b/pkg/kubectl/main.go @@ -13,6 +13,9 @@ import ( "k8s.io/component-base/cli" "k8s.io/kubectl/pkg/cmd" "k8s.io/kubectl/pkg/cmd/util" + + // Import to initialize client auth plugins. + _ "k8s.io/client-go/plugin/pkg/client/auth" ) func Main() {