Skip to content

fix(e2e): enable managed AAD for test clusters on main - #10190

Merged
Sylvain Boily (djsly) merged 1 commit into
mainfrom
abigailliang/backport-main-e2e-aad-10133
Nov 25, 2026
Merged

Sylvain Boily (djsly) merged 1 commit into
mainfrom
abigailliang/backport-main-e2e-aad-10133

Conversation

@abigailliang-aks-sig-node

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Partially backports #10133: enable Kubernetes RBAC and managed Microsoft Entra ID integration in getBaseClusterModel.

The main-branch AgentBaker E2E run 193218405 fails to create its test AKS cluster with HTTP 403 under CloudGov_KubernAuthN_AAD (AAD should be enabled in Kubernetes Service). This change adds EnableRBAC: true and AADProfile.Managed: true to the shared test-cluster creation model. It does not enable Azure RBAC for Kubernetes Authorization.

Only the AAD cluster-model change is included. The default VHD image selector remains unchanged; missing test VHDs are a separate issue. No customer provisioning or VHD build feature flags are changed.

Which issue(s) this PR fixes:

Addresses the AAD policy denial in the run above; source PR: #10133.

Validation:

  • cd e2e && go test ./scenario passed.
  • gofmt and git diff --check passed.
  • Live E2E has not been rerun; CI must verify cluster creation and subsequent access.

Backport only the test-cluster AAD configuration from #10133. Enable Kubernetes RBAC and managed Entra ID integration to address CloudGov_KubernAuthN_AAD denials. Leave the default VHD image selector unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 1b5a8171-5163-48fa-810e-1054bb3eada0
@github-actions

Copy link
Copy Markdown
Contributor

Windows Unit Test Results

  3 files   21 suites   59s ⏱️
811 tests 811 ✅ 0 💤 0 ❌
838 runs  838 ✅ 0 💤 0 ❌

Results for commit 8d3b2c8.

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
test 0% ❌
windows 27% ❌
parts_windows Package 1 74% ➖
staging_cse_windows Package 1 72% ➖
debug 0% ❌
provisioningscripts 2% ❌
Summary 40% (2073 / 7315) ❌

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
shellspec spec 30% ❌
Summary 30% (5037 / 16765) ❌

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
github.com/Azure/agentbaker/aks-live-patching/pkg/status 100% ✔
github.com/Azure/agentbaker/apiserver 24% ❌
github.com/Azure/agentbaker/cmd 0% ❌
github.com/Azure/agentbaker/cmd/starter 0% ❌
github.com/Azure/agentbaker/fuzz/api 0% ❌
github.com/Azure/agentbaker/hotfix/render-nodecustomdata 35% ❌
github.com/Azure/agentbaker/pkg/agent 79% ➖
github.com/Azure/agentbaker/pkg/agent/datamodel 77% ➖
github.com/Azure/agentbaker/pkg/agent/toggles 0% ❌
github.com/Azure/agentbaker/pkg/vhdbuilder/datamodel 87% ✔
github.com/Azure/agentbaker/aks-node-controller 73% ➖
github.com/Azure/agentbaker/aks-node-controller/common 100% ✔
github.com/Azure/agentbaker/aks-node-controller/helpers 68% ➖
github.com/Azure/agentbaker/aks-node-controller/parser 88% ✔
github.com/Azure/agentbaker/aks-node-controller/pkg/gpu 100% ✔
github.com/Azure/agentbaker/aks-node-controller/pkg/nodeconfigutils 92% ✔
github.com/Azure/agentbaker/aks-node-controller/utils 0% ❌
Summary 84% (6152 / 8108) ✔

@djsly
Sylvain Boily (djsly) requested a balanced review from Copilot November 25, 2026 20:25
@djsly
Sylvain Boily (djsly) merged commit 2d48124 into main Nov 25, 2026
25 of 28 checks passed
@djsly
Sylvain Boily (djsly) deleted the abigailliang/backport-main-e2e-aad-10133 branch November 25, 2026 20:25

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.

🔵 Needs a closer look

Live E2E validation is still needed to confirm managed Entra ID satisfies subscription policy and preserves admin credential retrieval and Kubernetes access.

No open issues 🎉

What changed in this PR

Partially backports #10133 to address the managed Microsoft Entra ID policy denial when creating main-branch E2E test clusters.

Changes:

  • Enables Kubernetes RBAC and managed Microsoft Entra ID integration in the shared cluster model.
  • Leaves Azure RBAC authorization, VHD image selection, and customer provisioning unchanged.

Live E2E validation remains pending to confirm cluster creation and subsequent access.

File Description
e2e/​scenario/​aks_model.go Sets EnableRBAC and AADProfile.Managed to true in getBaseClusterModel.

Review effort: Balanced

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants