Add client auth plugin framework for kubectl with GCP auth plugin.

This commit is contained in:
CJ Cullen
2016-03-05 18:00:36 -08:00
parent 6320e41b4f
commit 03f9b5adc0
11 changed files with 375 additions and 12 deletions

View File

@@ -30,6 +30,7 @@ import (
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/unversioned"
clientcmdapi "k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api"
"k8s.io/kubernetes/pkg/runtime"
"k8s.io/kubernetes/pkg/util/crypto"
"k8s.io/kubernetes/pkg/version"
@@ -65,6 +66,9 @@ type Config struct {
// Impersonate is the username that this RESTClient will impersonate
Impersonate string
// Server requires plugin-specified authentication.
AuthProvider *clientcmdapi.AuthProviderConfig
// TLSClientConfig contains settings to enable transport layer security
TLSClientConfig