- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for WatchPredicate (0.41 sec)
-
pkg/controller/volume/persistentvolume/index_test.go
func (c byCapacity) Swap(i, j int) { c.volumes[i], c.volumes[j] = c.volumes[j], c.volumes[i] } func (c byCapacity) Len() int { return len(c.volumes) } // matchStorageCapacity is a matchPredicate used to sort and find volumes func matchStorageCapacity(pvA, pvB *v1.PersistentVolume) bool { aQty := pvA.Spec.Capacity[v1.ResourceStorage] bQty := pvB.Spec.Capacity[v1.ResourceStorage] return aQty.Cmp(bQty) <= 0
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 21 13:31:28 UTC 2023 - 44K bytes - Viewed (0)