feat: migrate bootstrap-only validations to CEL #451
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 310 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.343
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.063
Real PR Conversation Timeline
1 comments
"Review active on #451"
general
weight: 0.35
ajaysundark
<!-- Thanks for sending a pull request! Here are some tips for you:
-->
Description
This PR completes the migration of the remaining
bootstrap-onlyenforcement validations from the admission webhook to native CELXValidationmarkers on theNodeReadinessRuleSpec.Specifically, it blocks two invalid configurations directly at the API level:
1.
enforcementMode: bootstrap-onlycombined withdefaultStatus2.
enforcementMode: bootstrap-onlycombined withconditionPolicy: anyOfThis aligns with the clean hybrid approach established in PR #418, ensuring standard user templates using
allOfcontinue to work while safely short-circuiting unsupported bootstrap-only configurations without the need for a webhook round-trip.Changes include:
XValidationmarkers tonodereadinessrule_types.gonodereadinessgaterule_webhook.goenvtesttest casesRelated Issue
Fixes #449
Type of Change
/kind feature
/kind api-change
/kind cleanup
Testing
envtestcases were added tonodereadinessrule_controller_test.goto explicitly verify that the API server rejects these invalid manifests during creation.Checklist
make testpassesmake lintpassesDoes this PR introduce a user-facing change?
``
release-notebootstrap-only` validation logic from the admission webhook to native CRD CEL validations, improving API server efficiency when creating or updating NodeReadinessRules.Migrated the remaining