Skip to content

Commit

Permalink
Import auth to support different platforms
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 <luola@vmware.com>
  • Loading branch information
luolanzone committed Dec 19, 2022
1 parent 113fe92 commit 4eb523a
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 4eb523a

Please sign in to comment.