Split scheduler's PodInfo into two types, PodInfo and PodQueueInfo

This commit is contained in:
Abdullah Gharaibeh
2020-04-20 20:36:26 -04:00
parent 4820b6cbdb
commit a151682887
13 changed files with 167 additions and 160 deletions

View File

@@ -211,7 +211,7 @@ type Plugin interface {
}
// LessFunc is the function to sort pod info
type LessFunc func(podInfo1, podInfo2 *PodInfo) bool
type LessFunc func(podInfo1, podInfo2 *QueuedPodInfo) bool
// QueueSortPlugin is an interface that must be implemented by "QueueSort" plugins.
// These plugins are used to sort pods in the scheduling queue. Only one queue sort
@@ -219,7 +219,7 @@ type LessFunc func(podInfo1, podInfo2 *PodInfo) bool
type QueueSortPlugin interface {
Plugin
// Less are used to sort pods in the scheduling queue.
Less(*PodInfo, *PodInfo) bool
Less(*QueuedPodInfo, *QueuedPodInfo) bool
}
// PreFilterExtensions is an interface that is included in plugins that allow specifying