From f4bf7599b4b1e64cd7ae55f92fd8640beb2de497 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 Kubernetes-commit: c94b4bb2acd11bc0677eb867e6eff5b36bd205b4 --- plugin/pkg/client/auth/azure/azure.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/pkg/client/auth/azure/azure.go b/plugin/pkg/client/auth/azure/azure.go index ad60243d..5b679b16 100644 --- a/plugin/pkg/client/auth/azure/azure.go +++ b/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`) })