Skip to content

Commit 89a6c90

Browse files
committed
Register GCP auth plugin
As described here hashicorp/terraform#15244 (comment) client-go doesn't enable GCP auth plugin by default. We have to do it explicitly
1 parent d7584c8 commit 89a6c90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kubernetes/provider.go

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"github.com/hashicorp/terraform/helper/schema"
1010
"github.com/hashicorp/terraform/terraform"
1111
"github.com/mitchellh/go-homedir"
12+
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
1213
restclient "k8s.io/client-go/rest"
1314
"k8s.io/client-go/tools/clientcmd"
1415
clientcmdapi "k8s.io/client-go/tools/clientcmd/api"

0 commit comments

Comments
 (0)