Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for admissionRequirementList (0.53 sec)

  1. pkg/kubelet/preemption/preemption.go

    			dist += math.Pow(remainingRequest/float64(req.quantity), 2)
    		}
    	}
    	return dist
    }
    
    // subtract returns a new admissionRequirementList containing remaining requirements if the provided pod
    // were to be preempted
    func (a admissionRequirementList) subtract(pods ...*v1.Pod) admissionRequirementList {
    	newList := []*admissionRequirement{}
    	for _, req := range a {
    		newQuantity := req.quantity
    		for _, pod := range pods {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 16:53:19 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  2. pkg/kubelet/preemption/preemption_test.go

    			quantity:     int64(pods),
    		})
    	}
    	return admissionRequirementList(reqs)
    }
    
    // this checks if the lists contents contain all of the same elements.
    // this is not correct if there are duplicate pods in the list.
    // for example: podListEqual([a, a, b], [a, b, b]) will return true
    func admissionRequirementListEqual(list1 admissionRequirementList, list2 admissionRequirementList) bool {
    	if len(list1) != len(list2) {
    		return false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jul 24 10:04:08 UTC 2022
    - 19.2K bytes
    - Viewed (0)
Back to top