Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler interface { // Filter based on extender-implemented predicate functions. The filtered list is // expected to be a subset of the supplied list. Filter(*schedulerapiv1.ExtenderArgs) (*schedulerapiv1.ExtenderFilterResult, error) // Prioritize based on extender-implemented priority functions. The returned scores & weight // are used to compute the weighted score for an extender. The weighted scores are added to // the scores computed by kubernetes scheduler. The total scores are used to do the host selection. Priority(*schedulerapiv1.ExtenderArgs) (schedulerapiv1.HostPriorityList, error) }
Scheduler is an interface for external processes to influence scheduling decisions made by kubernetes. This is typically needed for resources not directly managed by kubernetes.
func NewScheduler ¶
func NewScheduler(kubeCli kubernetes.Interface) Scheduler
NewScheduler returns a Scheduler
Click to show internal directories.
Click to hide internal directories.