-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quotas: correct addComputedAllocAttrs (#23942)
Quota usage calculation depends on allocation.Resources field (which will be deprecated in the future), while device resources are being kept in allocation.AllocatedResources and parsed into a structure (vendor/type/name) in order for the ranking in the scheduler to find nodes that can satisfy device requirements. To make device quotas work properly, this has to be temporarily translated into allocation.Resources.Devices. --------- Co-authored-by: Tim Gross <[email protected]>
- Loading branch information
1 parent
0babf01
commit 4ade277
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters