From 4de4392a9066ac7c657a786e01d9b09f97630ebb Mon Sep 17 00:00:00 2001 From: Lan Date: Tue, 24 Jan 2023 06:37:12 +0800 Subject: [PATCH] Import auth to support different platforms (#4494) Antctl failed to talk with GCP cluster and it shows: `Error: no Auth Provider found for name "gcp"`. According to the example of client-go, we need to import auth package to support different public platform's authentication. Signed-off-by: Lan Luo --- pkg/antctl/runtime/runtime.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/antctl/runtime/runtime.go b/pkg/antctl/runtime/runtime.go index 5c2b881f60e..b1be1853dae 100644 --- a/pkg/antctl/runtime/runtime.go +++ b/pkg/antctl/runtime/runtime.go @@ -18,6 +18,7 @@ import ( "os" "strings" + _ "k8s.io/client-go/plugin/pkg/client/auth" "k8s.io/client-go/rest" "k8s.io/client-go/tools/clientcmd"