Skip to content

Commit

Permalink
Get sorted list on Resources slice.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbobrovskyi committed Oct 18, 2024
1 parent 88d9162 commit 045b4f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ func (c *Cache) LocalQueueUsage(qObj *kueue.LocalQueue) (*LocalQueueUsageStats,
for _, rgFlavor := range rg.Flavors {
flavor := kueue.LocalQueueFlavorStatus{Name: rgFlavor}
if rif, ok := resourcesInFlavor[rgFlavor]; ok {
flavor.Resources = rif.UnsortedList()
flavor.Resources = sets.List(rif)
}
if rf, ok := c.resourceFlavors[rgFlavor]; ok {
flavor.NodeLabels = rf.Spec.NodeLabels
Expand Down

0 comments on commit 045b4f1

Please sign in to comment.