scheduler

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HostnameLabel = "kubernetes.io/hostname"
)

Variables

This section is empty.

Functions

func SetPodNodeAffinityPreferred

func SetPodNodeAffinityPreferred(node *corev1.Node, pod *corev1.Pod)

func SetPodNodeAffinityRequired

func SetPodNodeAffinityRequired(node *corev1.Node, pod *corev1.Pod)

Types

type Scheduler

type Scheduler struct {
	Client    client.Client
	Config    *config.Config
	Namespace string
	IdLabels  map[string]string
}

func (*Scheduler) SchedulePod

func (s *Scheduler) SchedulePod(pod *corev1.Pod, step *bitflowv1.BitflowStep, sources []*bitflowv1.BitflowSource) (*corev1.Node, string)

Jump to

Keyboard shortcuts

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