Skip to content

Jonachang/e2einternal - #5134

Open
Jonathan CHang (jonathan34c) wants to merge 2 commits into
masterfrom
jonachang/e2einternal
Open

Jonathan CHang (jonathan34c) wants to merge 2 commits into
masterfrom
jonachang/e2einternal

Conversation

@jonathan34c

Copy link
Copy Markdown
Contributor

Which issue this PR addresses:

Supersedes/follows up #5100.

Allows Classic E2E tests to authenticate with a managed identity when
AZURE_TOKEN_CREDENTIALS is set, while preserving service-principal
authentication for existing environments.

Validation:
go test ./test/e2e -run '^$'

What this PR does / why we need it:

Supersedes/follows up #5100.

Allows Classic E2E tests to authenticate with a managed identity when
AZURE_TOKEN_CREDENTIALS is set, while preserving service-principal
authentication for existing environments.

Validation:
go test ./test/e2e -run '^$'

Test plan for issue:

Is there any documentation that needs to be updated for this PR?

How do you know this will function as expected in production?

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The credential paths are consistently applied while preserving the existing fallback behavior.

0 open findings

What changed in this PR

Enables Classic E2E infrastructure to use Azure managed identity while retaining service-principal fallback.

Changes:

  • Selects credentials using AZURE_TOKEN_CREDENTIALS.
  • Conditionally validates service-principal variables.
  • Reuses credential selection across E2E Azure clients.
File Description
test/​e2e/​setup.go Adds flexible E2E credential selection and validation.
pkg/​util/​cluster/​cluster.go Supports selected Azure credentials for cluster operations.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants