kubernetes-sigs / cloud-provider-azure

Cloud provider for Azure
https://cloud-provider-azure.sigs.k8s.io/
Apache License 2.0
262 stars 273 forks source link

[release-1.28] Support workload identity in e2e test #6694

Closed nilo19 closed 3 months ago

nilo19 commented 3 months ago

What type of PR is this?

/kind cleanup /kind failing-test

What this PR does / why we need it:

This PR

  1. modifies an az login command invoked from the e2e tests to use a federated token when available instead of always trying to use a service principal password.
  2. support workload identity in e2e test.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

k8s-ci-robot commented 3 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nilo19

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/kubernetes-sigs/cloud-provider-azure/blob/release-1.28/OWNERS)~~ [nilo19] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment