volcano-sh / volcano

A Cloud Native Batch System (Project under CNCF)
https://volcano.sh
Apache License 2.0
4.11k stars 949 forks source link

[cherry-pick for release-1.10] enquable and allocatable compare resource with the required dimensions and add testcaes #3732

Closed lowang-bh closed 1 week ago

lowang-bh commented 1 week ago

cherry-pick for https://github.com/volcano-sh/volcano/pull/3696

There is a func LessEqualWithDimension to only compare the wanted dimension resource in request after PR #3522

This PR is to replcase those resource compare.

also fixes #3729 and fixes #3537

Monokaix commented 1 week ago

/lgtm /approve

volcano-sh-bot commented 1 week ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Monokaix

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

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[pkg/scheduler/OWNERS](https://github.com/volcano-sh/volcano/blob/release-1.10/pkg/scheduler/OWNERS)~~ [Monokaix] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment