Skip to content

Commit f624f8e

Browse files
mikedanesek8s-publishing-bot
authored andcommitted
add better link for gcp auth plugin doc
Kubernetes-commit: 6a8579d1cd3ddeea6c012a4c0fdb7e32687a83f1
1 parent 3ac142e commit f624f8e

File tree

1 file changed

+2
-4
lines changed
  • plugin/pkg/client/auth/gcp

1 file changed

+2
-4
lines changed

plugin/pkg/client/auth/gcp/gcp.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,9 @@ type gcpAuthProvider struct {
116116
var warnOnce sync.Once
117117

118118
func newGCPAuthProvider(_ string, gcpConfig map[string]string, persister restclient.AuthProviderConfigPersister) (restclient.AuthProvider, error) {
119-
// deprecated in v1.22, remove in v1.25
120-
// this should be updated to use klog.Warningf in v1.24 to more actively warn consumers
121119
warnOnce.Do(func() {
122-
klog.V(1).Infof(`WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.25+; use gcloud instead.
123-
To learn more, consult https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins`)
120+
klog.Warningf(`WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.25+; use gcloud instead.
121+
To learn more, consult https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke`)
124122
})
125123

126124
ts, err := tokenSource(isCmdTokenSource(gcpConfig), gcpConfig)

0 commit comments

Comments
 (0)