fix(fleet): use tier disk size as a minimum #7675
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 394 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.358
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7675"
general
weight: 0.35
geoberle
What
Treat
TierConfig.MinOSDiskSizeGBas the minimum ephemeral OS disk capacity for SKU filtering. Regional and per-zone desired pools use the selected SKU's fullEphemeralDiskSizeGBfor their actual disk size. Pool identity hashes that resolved size instead of the tier minimum.Reject capacities that cannot be represented by the pool/ARM
int32field before conversion.Why
Using the tier requirement as the requested disk size leaves supported ephemeral capacity unused. This separates SKU eligibility from actual sizing while retaining minimum-based family fallback. Changing only the minimum does not replace a pool when its selected VM and resolved size remain unchanged; changing the actual disk size changes pool identity.
Testing
cd fleet && go test ./...— passed.make -C fleet build— passed.make lint MODULES=./fleet/...— passed with zero issues.Special notes for your reviewer
The controller remains shadow-only. Larger resolved disks change desired pool names and imply replacement in the projection, subject to existing quota and capacity protections.
Existing SKU capacity interpretation is preserved: positive NVMe capacity takes precedence over cache capacity, followed by resource-disk capacity only when ResourceDisk placement is supported. This does not combine device capacities or introduce new Azure service limits.
Static AKS creation, customer nodepool APIs, and live controller mutation behavior are unchanged. No tracking issue was supplied. UI and new-E2E checklist items are not applicable.
PR Checklist
If E2E tests are included:
demonstrate that the test is able to detect a defect/error and fail with
proper error message and logs which communicates nature of the problem.
---
AI-generated. Review for accuracy.
@geoberle requested from Slack