Add docs around importing auth plugins

Kubernetes-commit: 34e7af7ec6154694cb760a0bb76be71695f03f7e
This commit is contained in:
Jordan Liggitt
2019-01-16 22:29:29 -05:00
committed by Kubernetes Publisher
parent bd926d827d
commit 3e0afcd74e
4 changed files with 44 additions and 2 deletions

View File

@@ -28,8 +28,15 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/clientcmd"
// Uncomment the following line to load the gcp plugin (only required to authenticate against GKE clusters).
//
// Uncomment to load all auth plugins
// _ "k8s.io/client-go/plugin/pkg/client/auth
//
// Or uncomment to load specific auth plugins
// _ "k8s.io/client-go/plugin/pkg/client/auth/azure"
// _ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
// _ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
// _ "k8s.io/client-go/plugin/pkg/client/auth/openstack"
)
func main() {