From c94b4bb2acd11bc0677eb867e6eff5b36bd205b4 Mon Sep 17 00:00:00 2001 From: sabbey37 Date: Tue, 1 Feb 2022 15:31:10 -0500 Subject: [PATCH] Update azure auth plugin deprecation to warning --- .../src/k8s.io/client-go/plugin/pkg/client/auth/azure/azure.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/staging/src/k8s.io/client-go/plugin/pkg/client/auth/azure/azure.go b/staging/src/k8s.io/client-go/plugin/pkg/client/auth/azure/azure.go index ad60243dbbf..5b679b16dca 100644 --- a/staging/src/k8s.io/client-go/plugin/pkg/client/auth/azure/azure.go +++ b/staging/src/k8s.io/client-go/plugin/pkg/client/auth/azure/azure.go @@ -88,9 +88,8 @@ var warnOnce sync.Once func newAzureAuthProvider(_ string, cfg 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() { - klog.V(1).Infof(`WARNING: the azure auth plugin is deprecated in v1.22+, unavailable in v1.25+; use https://github.com/Azure/kubelogin instead. + klog.Warningf(`WARNING: the azure auth plugin is deprecated in v1.22+, unavailable in v1.25+; use https://github.com/Azure/kubelogin instead. To learn more, consult https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins`) })