Remove postStart hook for hami-core-vNPU tasks - #2062
Conversation
Signed-off-by: archlitchi <mengxuan.li@dynamia.ai>
Signed-off-by: archlitchi <mengxuan.li@dynamia.ai>
Signed-off-by: archlitchi <mengxuan.li@dynamia.ai>
Signed-off-by: archlitchi <mengxuan.li@dynamia.ai>
Signed-off-by: archlitchi <mengxuan.li@dynamia.ai>
Signed-off-by: limengxuan <mengxuan.li@dynamia.ai>
|
CC @Shouren |
cc @s descendants |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughhami-core admission no longer injects a limiter Changeshami-core admission behavior
Estimated code review effort: 2 (Simple) | ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request removes the injection of the PostStart lifecycle hook for Ascend core resources in MutateAdmission and updates the corresponding unit tests. The reviewer suggests simplifying the test assertions to directly verify that the container's Lifecycle remains nil, rather than using redundant nested conditional checks.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: archlitchi, Shouren The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@archlitchi It seems that the doc about limiter-process-startup is out of date. |
…te and HAMi-core nodes Make an annotation-less Ascend pod mode-agnostic so its effective mode follows the node it lands on, while pods pinned via huawei.com/vnpu-mode keep today's behavior: - Fit: only reject a hami-core-requested pod on a node that does not support it; unannotated (legacy vNPU) pods are allowed on both node types. Composes with the existing whole-card / memory-less mode gate. - PatchAnnotations: emit a superset RuntimeInfo (template name plus raw memory/core) so the device plugin picks the right shape per node. Limiter startup is no longer injected here: the scheduler-side PostStart hook was removed upstream in Project-HAMi#2062, so this change is scheduling-only. Fixes Project-HAMi#2034 Signed-off-by: ouyangluwei(riseunion) <ouyangluwei@riseunion.io>
…te and HAMi-core nodes (#2035) Make an annotation-less Ascend pod mode-agnostic so its effective mode follows the node it lands on, while pods pinned via huawei.com/vnpu-mode keep today's behavior: - Fit: only reject a hami-core-requested pod on a node that does not support it; unannotated (legacy vNPU) pods are allowed on both node types. Composes with the existing whole-card / memory-less mode gate. - PatchAnnotations: emit a superset RuntimeInfo (template name plus raw memory/core) so the device plugin picks the right shape per node. Limiter startup is no longer injected here: the scheduler-side PostStart hook was removed upstream in #2062, so this change is scheduling-only. Fixes #2034 Signed-off-by: ouyangluwei(riseunion) <ouyangluwei@riseunion.io> Co-authored-by: ouyangluwei(riseunion) <ouyangluwei@riseunion.io>
/kind cleanup
Limiter process will be automatically launched when accessing cann API, we don't need to manually launch it anymore
Summary by CodeRabbit