Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for PodEligibleToPreemptOthers (0.32 sec)

  1. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go

    		if _, err := reprievePod(p); err != nil {
    			return nil, 0, framework.AsStatus(err)
    		}
    	}
    	return victims, numViolatingVictim, framework.NewStatus(framework.Success)
    }
    
    // PodEligibleToPreemptOthers returns one bool and one string. The bool
    // indicates whether this pod should be considered for preempting other pods or
    // not. The string includes the reason if this pod isn't eligible.
    // There're several reasons:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 25 19:36:04 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/preemption/preemption_test.go

    	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/preemption/preemption.go

    	CandidatesToVictimsMap(candidates []Candidate) map[string]*extenderv1.Victims
    	// PodEligibleToPreemptOthers returns one bool and one string. The bool indicates whether this pod should be considered for
    	// preempting other pods or not. The string includes the reason if this pod isn't eligible.
    	PodEligibleToPreemptOthers(pod *v1.Pod, nominatedNodeStatus *framework.Status) (bool, string)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    				frameworkruntime.WithLogger(logger),
    			)
    			if err != nil {
    				t.Fatal(err)
    			}
    			pl := DefaultPreemption{fh: f, fts: test.fts}
    			if got, _ := pl.PodEligibleToPreemptOthers(test.pod, test.nominatedNodeStatus); got != test.expected {
    				t.Errorf("expected %t, got %t for pod: %s", test.expected, got, test.pod.Name)
    			}
    		})
    	}
    }
    func TestPreempt(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
Back to top