File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ import (
71
71
"sigs.k8s.io/cloud-provider-azure/pkg/provider/securitygroup"
72
72
"sigs.k8s.io/cloud-provider-azure/pkg/provider/subnet"
73
73
"sigs.k8s.io/cloud-provider-azure/pkg/provider/zone"
74
+ "sigs.k8s.io/cloud-provider-azure/pkg/version"
74
75
75
76
azcache "sigs.k8s.io/cloud-provider-azure/pkg/cache"
76
77
"sigs.k8s.io/cloud-provider-azure/pkg/consts"
@@ -466,6 +467,8 @@ func (az *Cloud) InitializeCloudFromConfig(ctx context.Context, config *config.C
466
467
az .configAzureClients (servicePrincipalToken , multiTenantServicePrincipalToken , networkResourceServicePrincipalToken )
467
468
468
469
if az .ComputeClientFactory == nil {
470
+ k8sVersion := version .Get ().GitVersion
471
+ az .ARMClientConfig .UserAgent = fmt .Sprintf ("kubernetes-cloudprovider/%s; %s" , k8sVersion , az .ARMClientConfig .UserAgent )
469
472
var cred azcore.TokenCredential
470
473
if authProvider .IsMultiTenantModeEnabled () {
471
474
multiTenantCred := authProvider .GetMultiTenantIdentity ()
You can’t perform that action at this time.
0 commit comments