scheduler

package
v0.0.0-...-8223eb1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicatorScheduler

type ApplicatorScheduler struct {
	// contains filtered or unexported fields
}

func NewApplicatorScheduler

func NewApplicatorScheduler(applicator NodeLabeler) *ApplicatorScheduler

ApplicatorSchedulers simply return the results of node label selector. The manifest is ignored.

func (*ApplicatorScheduler) AllocateNodes

func (*ApplicatorScheduler) DeallocateNodes

func (sel *ApplicatorScheduler) DeallocateNodes(klabels.Selector, []types.NodeName) error

func (*ApplicatorScheduler) EligibleNodes

func (sel *ApplicatorScheduler) EligibleNodes(_ manifest.Manifest, selector klabels.Selector) ([]types.NodeName, error)

type NodeLabeler

type NodeLabeler interface {
	GetMatches(klabels.Selector, labels.Type) ([]labels.Labeled, error)
}

Jump to

Keyboard shortcuts

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