Skip to content

feat(reconciler): check job placement and optional policy - #6

Merged
ananthb merged 1 commit into
mainfrom
feat/job-placement-validation
Dec 2, 2026
Merged

ananthb merged 1 commit into
mainfrom
feat/job-placement-validation

Conversation

@ananthb

@ananthb ananthb commented Dec 2, 2026

Copy link
Copy Markdown
Member

Show Nomad placement failures in deployment previews and tug diff. Projects can require a feasible placement, and controllers can require an OPA decision. Tug checks changed jobs against a fresh plan before registration and evaluates deploy hooks when they run.

Tested with go test ./..., go vet ./..., race tests for reconciliation and policy checks, and OpenTofu formatting. Focused tests cover capacity or policy changes after preview and policy failure during hook registration.

@ananthb
ananthb marked this pull request as ready for review December 2, 2026 10:37
@ananthb
ananthb merged commit cbe8b95 into main Dec 2, 2026
5 checks passed
@ananthb
ananthb deleted the feat/job-placement-validation branch December 2, 2026 13:29
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