Skip to content

feat: support dynamic soft-partitioning via shami-device-node-config ConfigMap#67

Merged
hami-robot[bot] merged 4 commits intoProject-HAMi:mainfrom
ashergaga:main
Apr 29, 2026
Merged

feat: support dynamic soft-partitioning via shami-device-node-config ConfigMap#67
hami-robot[bot] merged 4 commits intoProject-HAMi:mainfrom
ashergaga:main

Conversation

@ashergaga
Copy link
Copy Markdown
Contributor

What type of PR is this?
/kind feature

What this PR does / why we need it:
This PR introduces a new configuration mechanism using a ConfigMap named hami-device-node-config to manage vnpu resource partitioning strategies.

Core Logic:
If a node is specified in the hami-device-node-config ConfigMap, the plugin enables hami-vnpu-core. The number of virtual devices reported to Kubernetes for each physical chip is explicitly defined by the vDeviceCount parameter. For nodes not included in the ConfigMap, the plugin defaults to the standard template-based hard-partitioning mode.

Signed-off-by: ashergaga <1214443299@qq.com>
Signed-off-by: ashergaga <1214443299@qq.com>
Signed-off-by: ashergaga <1214443299@qq.com>
@hami-robot
Copy link
Copy Markdown
Contributor

hami-robot Bot commented Apr 28, 2026

@ashergaga: The label(s) kind/feature cannot be applied, because the repository doesn't have them.

Details

In response to this:

What type of PR is this?
/kind feature

What this PR does / why we need it:
This PR introduces a new configuration mechanism using a ConfigMap named hami-device-node-config to manage vnpu resource partitioning strategies.

Core Logic:
If a node is specified in the hami-device-node-config ConfigMap, the plugin enables hami-vnpu-core. The number of virtual devices reported to Kubernetes for each physical chip is explicitly defined by the vDeviceCount parameter. For nodes not included in the ConfigMap, the plugin defaults to the standard template-based hard-partitioning mode.

Instructions 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.

Copy link
Copy Markdown
Member

@archlitchi archlitchi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@hami-robot
Copy link
Copy Markdown
Contributor

hami-robot Bot commented Apr 29, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: archlitchi, ashergaga

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

The pull request process is described 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 added the approved label Apr 29, 2026
@hami-robot hami-robot Bot merged commit aebca2c into Project-HAMi:main Apr 29, 2026
8 checks passed
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.

2 participants