Skip to content

Commit 7a06f98

Browse files
committed
Register GCP auth plugin
As described here hashicorp/terraform#15244 (comment) client-go doesnt enable GCP auth plugin by default. We have to do it explicitly
1 parent 73569c5 commit 7a06f98

File tree

4 files changed

+287
-0
lines changed

4 files changed

+287
-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"

vendor/k8s.io/client-go/plugin/pkg/client/auth/gcp/OWNERS

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/k8s.io/client-go/plugin/pkg/client/auth/gcp/gcp.go

+274
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/vendor.json

+6
Original file line numberDiff line numberDiff line change
@@ -1483,6 +1483,12 @@
14831483
"version": "v3.0.0-beta.0",
14841484
"versionExact": "v3.0.0-beta.0"
14851485
},
1486+
{
1487+
"checksumSHA1": "FSBbUnlpHyGrcgAKYO6+nFtlNQs=",
1488+
"path": "k8s.io/client-go/plugin/pkg/client/auth/gcp",
1489+
"revision": "ca90456a21c1db4b5b1dadff1dbcc6f75692d0ee",
1490+
"revisionTime": "2017-03-02T18:21:54Z"
1491+
},
14861492
{
14871493
"checksumSHA1": "WKKCrNPVWbJYm1im1DA9145z6xI=",
14881494
"path": "k8s.io/client-go/rest",

0 commit comments

Comments
 (0)