Register DRA reconciler with manager #1287
All Vouch review confidence checks passed
Residual risk 0.16 = 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 · 220 lines diff across 2 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.323
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #1287"
general
weight: 0.35
yevgeny-shnaidman
Register DRA reconciler with manager
Summary
Wire the existing DRA reconciler into the operator manager so that DRA Modules
are actively reconciled when the manager runs in a cluster. This adds the scheme
registration, RBAC permissions, reconciler construction, and DRA module count
metric to the existing metrics sweep.
Changes
- Add
resourcev1.AddToScheme(scheme)for the DRA resource API- Construct and register
DRAReconcilerviaSetupWithManager- Add
//+kubebuilder:rbacannotation forresource.k8s.io/deviceclasses- Add
SetKMMDRANummethod andkmm_dra_numgauge- Count modules with
spec.drain the existing metrics sweep- Regenerated with
resource.k8s.io/deviceclassesrule (all CRUD verbs)Testing
setKMMOMetricsDescribeTable with adrabool parameter and a new "dra" entry. All 12 entries (including "altogether") pass.setKMMOMetricsfunction at 100% coverage;internal/controllerspackage at 89.9%Acceptance Criteria
resourcev1.AddToScheme(scheme)is called incmd/manager/main.goDRAReconcileris constructed and registered viaSetupWithManager(mgr)incmd/manager/main.goresource.k8s.io/deviceclassesverbs (get, list, watch, create, update, patch, delete)