clusterapi: set resource slice count for DRA scale-from-zero - #10200
clusterapi: set resource slice count for DRA scale-from-zero#10200dlanov wants to merge 1 commit into
Conversation
|
This issue is currently awaiting triage. If SIG Autoscaling contributors determines this is a relevant issue, they will accept it by applying the The DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
Welcome @dlanov! |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dlanov The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @dlanov. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe cluster API provider now sets ChangesDRA resource slice pool
Estimated code review effort: 2 (Simple) | ~5 minutes Merge Risk: ⚪ Minimal · up to This localized change sets the generated resource slice count to match the single slice produced for scale-from-zero, enabling DRA workloads to trigger node scaling; no actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Linked Issues checkExplanation The changes satisfy issue
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Cluster API scale-from-zero generates a synthetic
ResourceSlicefor nodegroups configured with DRA capacity annotations.
The generated
ResourcePoolcurrently leavesResourceSliceCountat itszero value. The DRA allocator treats that pool as incomplete, so its devices
are ignored and DRA workloads cannot trigger scale-from-zero.
Set
ResourceSliceCountto 1, matching the singleResourceSlicegeneratedfor the synthetic node.
The existing
TestAnnotationscoverage is updated to verify the generatedresource slice contains the correct pool metadata.
Which issue(s) this PR fixes:
Fixes #10199
Special notes for your reviewer:
Verified that the updated test fails when the production change is removed:
the expected
ResourceSliceCountis 1 while the generated value remains 0.Validation:
go test -race -vet=all ./cloudprovider/clusterapi/...The separate MIG device-attribute limitation mentioned in #10199 is outside
the scope of this change.
Does this PR introduce a user-facing change?