Skip to content

fix: protect reconcile labels on managed jobs and deployments - #1362

Merged
Britania Rodriguez Reyes (britaniar) merged 3 commits into
Azure:mainfrom
Arvindthiru:jobMutatingE2E
Oct 12, 2026
Merged

Britania Rodriguez Reyes (britaniar) merged 3 commits into
Azure:mainfrom
Arvindthiru:jobMutatingE2E

Conversation

@Arvindthiru

@Arvindthiru Arvind Thirumurugan (Arvindthiru) commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Description of your changes

Add E2Es for #1360

Adds end-to-end coverage for Job mutating and validating webhooks and closes a label-removal bypass for managed Jobs and Deployments.

Prevents non-aksService users from removing both reconcile labels in one update.
Preserves existing behavior that blocks all non-aksService updates to reconcile-managed resources.
Adds Job webhook E2Es covering mutation, validation, updates, reserved namespaces, and Pod creation.
Verifies managed Jobs create labeled Pods and unmanaged Jobs cannot create Pods.

Fixes #

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Special notes for your reviewer

Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
@Arvindthiru Arvind Thirumurugan (Arvindthiru) changed the title feat: Job mutating/validating webhook E2Es test: Job mutating/validating webhook E2Es Oct 9, 2026
Comment thread test/e2e/fleet_guard_rail_test.go
Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
…s/deployments

Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
@Arvindthiru Arvind Thirumurugan (Arvindthiru) changed the title test: Job mutating/validating webhook E2Es fix: protect reconcile labels on managed jobs and deployments Oct 9, 2026
@britaniar
Britania Rodriguez Reyes (britaniar) merged commit 23641d7 into Azure:main Oct 12, 2026
37 of 40 checks passed
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.

2 participants