Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for expectedNodes (0.39 sec)

  1. pkg/scheduler/internal/queue/scheduling_queue_test.go

    	totalNum := 10
    	expectedPods := make([]v1.Pod, 0, totalNum)
    	for i := 0; i < totalNum; i++ {
    		priority := int32(i)
    		p := st.MakePod().Name(fmt.Sprintf("pod%d", i)).Namespace(fmt.Sprintf("ns%d", i)).UID(fmt.Sprintf("upns%d", i)).Priority(priority).Obj()
    		expectedPods = append(expectedPods, *p)
    		// priority is to make pods ordered in the PriorityQueue
    		q.Add(logger, p)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
Back to top