Skip to content

feat: Add mutating, validating webhooks for Jobs to allow reconciliation - #1360

Open
Arvind Thirumurugan (Arvindthiru) wants to merge 2 commits into
Azure:mainfrom
Arvindthiru:jobMutateValidate
Open

Arvind Thirumurugan (Arvindthiru) wants to merge 2 commits into
Azure:mainfrom
Arvindthiru:jobMutateValidate

Conversation

@Arvindthiru

Copy link
Copy Markdown
Contributor

Description of your changes

Adds mutating and validating webhooks for batch/v1 Jobs, matching the existing Deployment behavior.

Adds fleet.azure.com/reconcile=managed to Job and pod-template labels for aksService requests.
Prevents unauthorized users from setting the managed label.
Registers Job mutating and validating admission rules.
Updates the Admission Policy Manager to allow job-controller to create Pods carrying the managed reconcile label.
Adds webhook and admission-policy test coverage.

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

…llow job controller to create pods based on label

Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
@britaniar

Copy link
Copy Markdown
Contributor

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
@britaniar

Copy link
Copy Markdown
Contributor

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

This branch has not been deployed

No deployments
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