Skip to content

Commit

Permalink
Fix the "Standalone"-mode of oidc-login in the wrapped kubectl applic…
Browse files Browse the repository at this point in the history
…ation.

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 <[email protected]>
  • Loading branch information
ludost committed Nov 7, 2024
1 parent 9c32f83 commit d14c5d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/kubectl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d14c5d1

Please sign in to comment.