feat(backend): add node pool premium OS disk validation #7499
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 287 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.339
Real PR Conversation Timeline
1 comments
"Review active on #7499"
general
weight: 0.35
machi1990
A node pool can request a Premium_LRS OS disk, but nothing checks beforehand that the chosen VM size actually supports Premium storage — Azure rejects the deployment only once it's already in flight.
Add AzureNodePoolPremiumOSDiskValidation, a node pool validation controller that checks the VM size's PremiumIO Resource SKU capability via the existing cached SKU reader. Node pools not requesting a Premium_LRS OS disk are skipped. Also update the controller registry manifest test expectations for the newly registered controller.
This validation is being performed on CS side through a CS inflight check so this implements it on this side. Once it's rolled out we should remove the validation on CS side.
<!-- Link to Jira issue -->
What
<!-- Briefly describe what this PR does -->
Why
<!-- Briefly explain why this change is needed -->
Testing
Testing is required for feature completion and tests should be part of the pull
request along with the feature changes.
Describe the testing provided. If you did not add tests, provide a clear
justification.
Special notes for your reviewer
<!-- optional -->
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.