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
| 109 | // } |
| 110 | // |
| 111 | type gcpAuthProvider struct { |
| 112 | tokenSource oauth2.TokenSource |
| 113 | persister restclient.AuthProviderConfigPersister |
| 114 | } |
| 115 | |
| 116 | func newGCPAuthProvider(_ string, gcpConfig map[string]string, persister restclient.AuthProviderConfigPersister) (restclient.AuthProvider, error) { |
| 117 | ts, err := tokenSource(isCmdTokenSource(gcpConfig), gcpConfig) |
nothing calls this directly
no outgoing calls
no test coverage detected