- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GetEarliestPodStartTime (0.18 sec)
-
pkg/scheduler/util/utils.go
} // Assumed pods and bound pods that haven't started don't have a StartTime yet. return &metav1.Time{Time: time.Now()} } // GetEarliestPodStartTime returns the earliest start time of all pods that // have the highest priority among all victims. func GetEarliestPodStartTime(victims *extenderv1.Victims) *metav1.Time { if len(victims.Pods) == 0 { // should not reach here.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 21 01:40:44 UTC 2023 - 6.2K bytes - Viewed (0) -
pkg/scheduler/util/utils_test.go
}, expectedStartTime: &metav1.Time{Time: currentTime}, }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { startTime := GetEarliestPodStartTime(&extenderv1.Victims{Pods: test.pods}) if !startTime.Equal(test.expectedStartTime) { t.Errorf("startTime is not the expected result,got %v, expected %v", startTime, test.expectedStartTime) } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 21 01:40:44 UTC 2023 - 14.5K bytes - Viewed (0) -
pkg/scheduler/framework/preemption/preemption.go
return -int64(len(nodesToVictims[node].Pods)) } latestStartTimeScoreFunc := func(node string) int64 { // Get the earliest start time of all pods on the current node. earliestStartTimeOnNode := util.GetEarliestPodStartTime(nodesToVictims[node]) if earliestStartTimeOnNode == nil { logger.Error(errors.New("earliestStartTime is nil for node"), "Should not reach here", "node", node) return int64(math.MinInt64) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 15:52:16 UTC 2024 - 25.1K bytes - Viewed (0)