Skip to content

device node config support filterDevices#76

Open
band-p wants to merge 21 commits into
Project-HAMi:mainfrom
band-p:main
Open

device node config support filterDevices#76
band-p wants to merge 21 commits into
Project-HAMi:mainfrom
band-p:main

Conversation

@band-p

@band-p band-p commented May 14, 2026

Copy link
Copy Markdown

Which issue(s) this PR fixes

Fixes #68

houyuxi and others added 6 commits May 13, 2026 17:30
Signed-off-by: houyuxi <yuxi.hou@transwarp.io>
Signed-off-by: houyuxi <yuxi.hou@transwarp.io>
Signed-off-by: houyuxi <yuxi.hou@transwarp.io>
Signed-off-by: houyuxi <yuxi.hou@transwarp.io>
Signed-off-by: houyuxi <yuxi.hou@transwarp.io>
Signed-off-by: band-p <lq1083301982@gmail.com>
@hami-robot

hami-robot Bot commented May 14, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: band-p
Once this PR has been reviewed and has the lgtm label, please assign archlitchi for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hami-robot

hami-robot Bot commented May 14, 2026

Copy link
Copy Markdown
Contributor

Welcome @band-p! It looks like this is your first PR to Project-HAMi/ascend-device-plugin 🎉

@hami-robot hami-robot Bot added the size/M label May 14, 2026
houyuxi and others added 15 commits May 15, 2026 10:28
… loop

The `pod, err :=` declaration inside the Allocate loop shadowed the outer `pod` variable, causing the defer closure to always see nil and preventing podAllocationTrySuccess/podAllocationFailed from executing.

Additionally:
- Move `GetPendingPod`, `buildRuntimeInfoLookup`, and annotation decode outside the loop to eliminate redundant per-container API calls
- Replace custom `decodePodSingleDevice` with `HAMi's DecodePodDevices`
- Use `popNextContainerDevices` for find and erase ContainerDevices in memory then call `patchErasedAnnotation` only one times instead of per-container erase
- Simplify method docs

Signed-off-by: houyuxi <yuxi.hou@transwarp.io>
Signed-off-by: houyuxi <yuxi.hou@transwarp.io>
Signed-off-by: houyuxi <yuxi.hou@transwarp.io>
…topCh` closed

Signed-off-by: houyuxi <yuxi.hou@transwarp.io>
Signed-off-by: houyuxi <yuxi.hou@transwarp.io>
Signed-off-by: houyuxi <yuxi.hou@transwarp.io>
…oadConfig

Signed-off-by: houyuxi <yuxi.hou@transwarp.io>
Signed-off-by: houyuxi <yuxi.hou@transwarp.io>
Signed-off-by: houyuxi <yuxi.hou@transwarp.io>
Signed-off-by: houyuxi <yuxi.hou@transwarp.io>
fix missing npu-exporter dependency
Signed-off-by: band-p <lq1083301982@gmail.com>
@hami-robot hami-robot Bot added size/XL and removed size/M labels May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ascend device plugin 支持 filterdevices 参数,设置一个节点内,排除几块npu,不让hama管理吗?

2 participants