mirror of
https://github.com/k3s-io/k3s.git
synced 2026-05-28 04:34:19 -04:00
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 <ludo.stellingwerff@gmail.com>
This commit is contained in:
parent
9c32f83819
commit
2441e46950
1 changed files with 3 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue