Skip to content

Commit

Permalink
Register GCP auth plugin
Browse files Browse the repository at this point in the history
As described here hashicorp/terraform#15244 (comment)
client-go doesn't enable GCP auth plugin by default. We have to do it explicitly
  • Loading branch information
e-max committed Jun 19, 2017
1 parent f224cb2 commit 97dd955
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kubernetes/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/terraform"
"github.com/mitchellh/go-homedir"
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
restclient "k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
clientcmdapi "k8s.io/client-go/tools/clientcmd/api"
Expand Down

0 comments on commit 97dd955

Please sign in to comment.