Skip to content

Commit

Permalink
Merge pull request #1665 from MartinForReal/master
Browse files Browse the repository at this point in the history
test: add UserAgent for e2e client
  • Loading branch information
k8s-ci-robot authored Oct 25, 2024
2 parents c549dd3 + 553620c commit 46f2a15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/utils/azure/azure_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (

"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
resources "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources"
"sigs.k8s.io/blob-csi-driver/pkg/blob"
"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/identityclient"
Expand All @@ -45,8 +46,9 @@ type Client struct {

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

0 comments on commit 46f2a15

Please sign in to comment.