Skip to content

Commit

Permalink
add UA for e2e client
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinForReal committed Oct 25, 2024
1 parent 25316fe commit 118cc42
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/utils/azure/azure_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
resources "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources"
storage "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
"k8s.io/utils/ptr"
"sigs.k8s.io/azurefile-csi-driver/pkg/azurefile"
"sigs.k8s.io/cloud-provider-azure/pkg/azclient"
"sigs.k8s.io/cloud-provider-azure/pkg/azclient/accountclient"
"sigs.k8s.io/cloud-provider-azure/pkg/azclient/fileshareclient"
Expand All @@ -52,8 +53,9 @@ type Client struct {

func GetAzureClient(cloud, subscriptionID, clientID, tenantID, clientSecret, aadFederatedTokenFile string) (*Client, error) {
armConfig := &azclient.ARMClientConfig{
Cloud: cloud,
TenantID: tenantID,
Cloud: cloud,
TenantID: tenantID,
UserAgent: azurefile.GetUserAgent(azurefile.DefaultDriverName, "", "e2e-test"),
}
useFederatedWorkloadIdentityExtension := false
if aadFederatedTokenFile != "" {
Expand Down

0 comments on commit 118cc42

Please sign in to comment.