schedule

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewController

func NewController(clusters []*cluster.Cluster, kClients map[string]kubernetes.Interface, impersonatingKClients map[string]map[string]kubernetes.Interface, s Scheduler) (*controller.Controller, error)

Types

type Scheduler

type Scheduler interface {
	Reset()
	SetPod(p *corev1.Pod)
	SetNode(n *corev1.Node)
	SetNodePool(np *v1alpha1.NodePool)
	Schedule(p *corev1.Pod) (string, error)
}

type SchedulerShim added in v0.4.0

type SchedulerShim interface {
	Schedule(pod *corev1.Pod, srcClusterName string) (targetClusterName string, err error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL