Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CandidatesToVictimsMap (0.29 sec)

  1. pkg/scheduler/framework/preemption/preemption.go

    	// shortlisted for dry running preemption.
    	GetOffsetAndNumCandidates(nodes int32) (int32, int32)
    	// CandidatesToVictimsMap builds a map from the target node to a list of to-be-preempted Pods and the number of PDB violation.
    	CandidatesToVictimsMap(candidates []Candidate) map[string]*extenderv1.Victims
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/preemption/preemption_test.go

    }
    
    func (pl *FakePostFilterPlugin) GetOffsetAndNumCandidates(nodes int32) (int32, int32) {
    	return 0, nodes
    }
    
    func (pl *FakePostFilterPlugin) CandidatesToVictimsMap(candidates []Candidate) map[string]*extenderv1.Victims {
    	return nil
    }
    
    func (pl *FakePostFilterPlugin) PodEligibleToPreemptOthers(pod *v1.Pod, nominatedNodeStatus *framework.Status) (bool, string) {
    	return true, ""
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go

    }
    
    // This function is not applicable for out-of-tree preemption plugins that exercise
    // different preemption candidates on the same nominated node.
    func (pl *DefaultPreemption) CandidatesToVictimsMap(candidates []preemption.Candidate) map[string]*extenderv1.Victims {
    	m := make(map[string]*extenderv1.Victims, len(candidates))
    	for _, c := range candidates {
    		m[c.Name()] = c.Victims()
    	}
    	return m
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 25 19:36:04 UTC 2023
    - 12.7K bytes
    - Viewed (0)
Back to top