Skip to content

Commit

Permalink
Import auth to support different platforms (#4494)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
luolanzone committed Jan 23, 2023
1 parent bb88999 commit 4de4392
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/antctl/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 4de4392

Please sign in to comment.