Add namespace-scoped ResourceOverride support to admission webhook #111
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 321 lines diff across 4 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.345
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #111"
general
weight: 0.35
joelsmith
Implements the operand side of RFE-9093: namespaced ResourceOverride objects with podSelector-based targeting, resolved ahead of ClusterResourceOverride at pod admission (AUTOSCALE-867, 868, 869).
Unit tests cover: podSelector matching (empty/nil/matchLabels/ matchExpressions), lexicographic tie-break and conflict events, exempt namespace filtering, nil-lister/store-error/no-match fallback paths, missing CRD not blocking startup, and unstructured decode edge cases (malformed, partial, non-unstructured cache items).
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
Admission now uses per-namespace/per-pod effective settings resolved from matching resource overrides.
Empty selectors now match all pods, and when multiple overrides match, selection is deterministic.
When multiple overrides match, warning events are emitted for the non-selected overrides; behavior falls back to cluster-level settings when no match is found (or overrides can’t be resolved).
Bug Fixes
Malformed pod input is rejected with an HTTP 400 response.
Tests
Expanded unit test coverage for override resolution, exemption logic, selector matching, and admission mutation/patching (including LimitRange and CPU/request scenarios).
<!-- end of auto-generated comment: release notes by coderabbit.ai -->