mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #108852 from mikedanese/auth-plugin-doc
add better link for gcp auth plugin doc
This commit is contained in:
commit
afb0136d62
@ -116,11 +116,9 @@ type gcpAuthProvider struct {
|
|||||||
var warnOnce sync.Once
|
var warnOnce sync.Once
|
||||||
|
|
||||||
func newGCPAuthProvider(_ string, gcpConfig map[string]string, persister restclient.AuthProviderConfigPersister) (restclient.AuthProvider, error) {
|
func newGCPAuthProvider(_ string, gcpConfig map[string]string, persister restclient.AuthProviderConfigPersister) (restclient.AuthProvider, error) {
|
||||||
// deprecated in v1.22, remove in v1.25
|
|
||||||
// this should be updated to use klog.Warningf in v1.24 to more actively warn consumers
|
|
||||||
warnOnce.Do(func() {
|
warnOnce.Do(func() {
|
||||||
klog.V(1).Infof(`WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.25+; use gcloud instead.
|
klog.Warningf(`WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.25+; use gcloud instead.
|
||||||
To learn more, consult https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins`)
|
To learn more, consult https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke`)
|
||||||
})
|
})
|
||||||
|
|
||||||
ts, err := tokenSource(isCmdTokenSource(gcpConfig), gcpConfig)
|
ts, err := tokenSource(isCmdTokenSource(gcpConfig), gcpConfig)
|
||||||
|
Loading…
Reference in New Issue
Block a user