Skip to content

Commit

Permalink
Enable all client-go auth plugins
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bpineau committed Apr 20, 2018
1 parent 6cf8a82 commit d37be68
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
28 changes: 25 additions & 3 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import:
subpackages:
- kubernetes
- plugin/pkg/client/auth/gcp
- plugin/pkg/client/auth/azure
- plugin/pkg/client/auth/oidc
- rest
- tools/clientcmd
- tools/cache
Expand Down Expand Up @@ -37,3 +39,5 @@ import:
version: ^1.0.0
- package: github.com/spf13/afero
version: ^1.1.0
- package: github.com/Azure/go-autorest
version: v9.10.0
4 changes: 2 additions & 2 deletions pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"k8s.io/client-go/tools/clientcmd"
"k8s.io/client-go/util/homedir"

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

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

0 comments on commit d37be68

Please sign in to comment.