feat: support dynamic soft-partitioning via shami-device-node-config ConfigMap#67
Conversation
Signed-off-by: ashergaga <1214443299@qq.com>
Signed-off-by: ashergaga <1214443299@qq.com>
Signed-off-by: ashergaga <1214443299@qq.com>
|
@ashergaga: The label(s) DetailsIn response to this:
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. |
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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-configto manage vnpu resource partitioning strategies.Core Logic:
If a node is specified in the
hami-device-node-configConfigMap, the plugin enableshami-vnpu-core. The number of virtual devices reported to Kubernetes for each physical chip is explicitly defined by thevDeviceCountparameter. For nodes not included in the ConfigMap, the plugin defaults to the standard template-based hard-partitioning mode.