MCPcopy
hub / github.com/kubernetes/client-go / gcpAuthProvider

Struct gcpAuthProvider

plugin/pkg/client/auth/gcp/gcp.go:111–114  ·  view source on GitHub ↗

gcpAuthProvider is an auth provider plugin that uses GCP credentials to provide tokens for kubectl to authenticate itself to the apiserver. A sample json config is provided below with all recognized options described. { 'auth-provider': { # Required "name": "gcp", 'config': { # Authentication opti

Source from the content-addressed store, hash-verified

109// }
110//
111type gcpAuthProvider struct {
112 tokenSource oauth2.TokenSource
113 persister restclient.AuthProviderConfigPersister
114}
115
116func newGCPAuthProvider(_ string, gcpConfig map[string]string, persister restclient.AuthProviderConfigPersister) (restclient.AuthProvider, error) {
117 ts, err := tokenSource(isCmdTokenSource(gcpConfig), gcpConfig)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected