predicates

package
v0.0.0-...-f394a37 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

this policy defines a configurable set of supported predicates. this should be configurable, and can be dumped as part of the scheduler configuration, which can be used to explicitly advertise what are supported.

Functions

This section is empty.

Types

type Predictor

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

func NewPredictor

func NewPredictor(args *factory.PluginFactoryArgs, testMode bool) *Predictor

func (*Predictor) Enabled

func (p *Predictor) Enabled() bool

func (*Predictor) GetPredicateMeta

func (p *Predictor) GetPredicateMeta(pod *v1.Pod,
	nodeNameToInfo map[string]*deschedulernode.NodeInfo) predicates.PredicateMetadata

func (*Predictor) Predicates

func (p *Predictor) Predicates(pod *v1.Pod, meta predicates.PredicateMetadata, node *deschedulernode.NodeInfo) error

func (*Predictor) RegisterFitPredicate

func (p *Predictor) RegisterFitPredicate(name string, predicate predicates.FitPredicate) string

From: k8s.io/kubernetes/pkg/scheduler/factory/plugins.go RegisterFitPredicate registers a fit predicate with the algorithm registry. Returns the name with which the predicate was registered.

func (*Predictor) RegisterFitPredicateFactory

func (p *Predictor) RegisterFitPredicateFactory(name string, predicateFactory factory.FitPredicateFactory) string

From: k8s.io/kubernetes/pkg/scheduler/factory/plugins.go RegisterFitPredicateFactory registers a fit predicate factory with the algorithm registry. Returns the name with which the predicate was registered.

func (*Predictor) RegisterMandatoryFitPredicate

func (p *Predictor) RegisterMandatoryFitPredicate(name string, predicate predicates.FitPredicate) string

From: k8s.io/kubernetes/pkg/scheduler/factory/plugins.go RegisterMandatoryFitPredicate registers a fit predicate with the algorithm registry, the predicate is used by kubelet, DaemonSet; it is always included in configuration. Returns the name with which the predicate was registered.

func (*Predictor) RegisterPredicateMetadataProducerFactory

func (p *Predictor) RegisterPredicateMetadataProducerFactory(factory factory.PredicateMetadataProducerFactory)

RegisterPredicateMetadataProducerFactory registers a PredicateMetadataProducerFactory.

Jump to

Keyboard shortcuts

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