Skip to content

Commit

Permalink
Merge pull request #36 from bpineau/more_auth_plugins
Browse files Browse the repository at this point in the history
Enable all client-go auth plugins
  • Loading branch information
bpineau committed Apr 20, 2018
2 parents 945def5 + d569086 commit af7823b
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 af7823b

Please sign in to comment.