AUTOSCALE-1058: Refactor EC2 and Azure NodeClass controllers #65
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 283 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.338
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #65"
general
weight: 0.35
Fedosin
Implements AUTOSCALE-1058. Splits the EC2 NodeClass reconciler into focused controllers and shares the admission policy controller between AWS and Azure.
Structure
nodeclass/ec2only reconcilesOpenshiftEC2NodeClassintoEC2NodeClassand syncs status.nodeclass/ec2/subnetcontroller (ec2-nodeclass-subnets) owns the management-clusterkarpenter-subnetsConfigMap.nodeclass/vapcontroller (nodeclass-vap) owns theValidatingAdmissionPolicyand binding for both providers, replacingnodeclass/azure/vapand the VAP code in the EC2 reconciler. Providers supply the policy; the controller adds theexclude-hcco-usermatch condition.HCPNodeClassProvider.NewControllersnow receives the manager.Behavioral changes
OpenshiftEC2NodeClassstay in the ConfigMap until the NodeClass is gone. Previously they were dropped as soon as deletion started, which could detach VPC endpoint subnets while NodeClaims were still being cleaned up.subnetIDs: []instead of being deleted. This avoids delete/recreate churn and gives HyperShift an explicit empty list; the HostedControlPlane owner reference still cleans it up.InfraID/override changes, rather than as a side effect of each NodeClass reconcile.ec2-nodeclass-subnetsandnodeclass-vap(previouslyazure-nodeclass-vap), which affects log and metric labels.Validation
go test ./pkg/... -count=1,go vet ./...,golangci-lint run ./...,make verify./test e2e-aws-autonode-standalone-kostill to run.