Repository navigation
test: fix shared-RG E2E for atm/afd and use the dedicated WIF connection - #461
Merged
Wei Weng (weng271190436) merged 2 commits intoNov 25, 2026
Conversation
A short commit SHA made only of digits, such as 6124884, is parsed by helm as a number and rendered as 6.124884e+06 after helm upgrade --reuse-values, which breaks the image reference (InvalidImageName). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
traffic_manager_test.go updates Traffic Manager endpoints directly, which requires joining the members' public IPs in their node resource groups. With least-privilege Contributor scoped to the shared resource group this returned LinkedAuthorizationFailed, so setup now grants E2E_TEST_PRINCIPAL_ID Network Contributor on both member node resource groups. The pipeline derives E2E_TEST_PRINCIPAL_ID from the signed-in token so it always matches the service connection in use, and defaults to the dedicated aks-devinfra-fleet-networking-e2e-wif connection. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Wei Weng (weng271190436)
approved these changes
Nov 25, 2026
Wei Weng (weng271190436)
merged commit Nov 25, 2026
1ebace1
into
ci/shared-e2e-resource-group
13 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #460 that fixes the two scenarios that failed in pipeline run 193063376 and moves the pipeline to the dedicated least-privilege WIF identity.
afd: The short SHA
6124884contained only digits.bootstrap.shpassed it with--set image.tag=$TAG, and the laterhelm upgrade --reuse-valuesininstall-afd.shre-rendered it as6.124884e+06. The pods then failed withInvalidImageNameand helm timed out. All image tags are now passed with--set-string.atm:
traffic_manager_test.goupdates Traffic Manager endpoints directly. With Contributor scoped to the shared resource group, the call returnsLinkedAuthorizationFailed, because the caller must be able to join the endpoint public IPs in the members'MC_*groups. Setup now grantsE2E_TEST_PRINCIPAL_IDNetwork Contributor on both member node resource groups. The conditional subscription-scoped RBAC Administrator role already permits that grant, and the assignment is removed when the node resource group is deleted.pipeline:
E2E_TEST_PRINCIPAL_IDis now derived from the signed-in token'soidbytest/scripts/caller-object-id.sh, so it always matches the service connection that actually runs the job. The default service connection is nowaks-devinfra-fleet-networking-e2e-wif, a Corp UAMI with WIF managed in aks-rpdevinfraservices/ci-resources. That connection has a Branch control check that allows only protectedmain, so validation runs from other branches must overrideserviceConnectiontoaks fleetnetworking, whose service principal has the same least-privilege grants.Testing:
go test ./test/scripts ./test/e2e/framework,bash -non every script, and shellcheck (no new warnings). An ADO validation run on this branch is linked in the comments.