Skip to content

Commit d569086

Browse files
committed
Enable all client-go auth plugins
This brings in auth plugins for Azure, OpenStack, OpenID connect... NB: fixing the Azure/go-autorest dep to v9.10.0, since newer (v10+) releases aren't compatible with client-go (v7.0.0) anymore.
1 parent 945def5 commit d569086

File tree

3 files changed

+31
-5
lines changed

3 files changed

+31
-5
lines changed

glide.lock

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

glide.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import:
55
subpackages:
66
- kubernetes
77
- plugin/pkg/client/auth/gcp
8+
- plugin/pkg/client/auth/azure
9+
- plugin/pkg/client/auth/oidc
810
- rest
911
- tools/clientcmd
1012
- tools/cache
@@ -37,3 +39,5 @@ import:
3739
version: ^1.0.0
3840
- package: github.com/spf13/afero
3941
version: ^1.1.0
42+
- package: github.com/Azure/go-autorest
43+
version: v9.10.0

pkg/client/client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"k8s.io/client-go/tools/clientcmd"
1111
"k8s.io/client-go/util/homedir"
1212

13-
// Ensure we have GCP auth method linked in
14-
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
13+
// Ensure we have auth plugins (gcp, azure, openstack, ...) linked in
14+
_ "k8s.io/client-go/plugin/pkg/client/auth"
1515
)
1616

1717
// NewRestConfig create a *rest.Config, trying to mimic kubectl behavior:

0 commit comments

Comments
 (0)