From cf03ad01a85ba11096e9931781a35edbec81380d Mon Sep 17 00:00:00 2001 From: Masayuki Ishii Date: Fri, 22 Oct 2021 08:27:56 +0000 Subject: [PATCH] Import auth plugin in kubectl-accurate Signed-off-by: Masayuki Ishii --- cmd/kubectl-accurate/sub/cmd.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/kubectl-accurate/sub/cmd.go b/cmd/kubectl-accurate/sub/cmd.go index 72383c5..0f2a640 100644 --- a/cmd/kubectl-accurate/sub/cmd.go +++ b/cmd/kubectl-accurate/sub/cmd.go @@ -3,6 +3,9 @@ package sub import ( "os" + // Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.) + _ "k8s.io/client-go/plugin/pkg/client/auth" + "github.com/cybozu-go/accurate" "github.com/spf13/cobra" "github.com/spf13/pflag"