kubernetes: k8s.io/kubernetes/pkg/scheduler/framework/plugins Index | Files | Directories

package plugins

import "k8s.io/kubernetes/pkg/scheduler/framework/plugins"

Index

Package Files

default_registry.go

func NewDefaultRegistry Uses

func NewDefaultRegistry(args *RegistryArgs) framework.Registry

NewDefaultRegistry builds the default registry with all the in-tree plugins. This is the registry that Kubernetes default scheduler uses. A scheduler that runs out of tree plugins can register additional plugins through the WithFrameworkOutOfTreeRegistry option.

type ConfigProducer Uses

type ConfigProducer func(args ConfigProducerArgs) (config.Plugins, []config.PluginConfig)

ConfigProducer produces a framework's configuration.

type ConfigProducerArgs Uses

type ConfigProducerArgs struct {
    // Weight used for priority functions.
    Weight int32
    // NodeLabelArgs is the args for the NodeLabel plugin.
    NodeLabelArgs *nodelabel.Args
    // RequestedToCapacityRatioArgs is the args for the RequestedToCapacityRatio plugin.
    RequestedToCapacityRatioArgs *requestedtocapacityratio.Args
    // ServiceAffinityArgs is the args for the ServiceAffinity plugin.
    ServiceAffinityArgs *serviceaffinity.Args
}

ConfigProducerArgs contains arguments that are passed to the producer. As we add more predicates/priorities to framework plugins mappings, more arguments may be added here.

type ConfigProducerRegistry Uses

type ConfigProducerRegistry struct {
    // maps that associate predicates/priorities with framework plugin configurations.
    PredicateToConfigProducer map[string]ConfigProducer
    PriorityToConfigProducer  map[string]ConfigProducer
}

ConfigProducerRegistry tracks mappings from predicates/priorities to framework config producers.

func NewDefaultConfigProducerRegistry Uses

func NewDefaultConfigProducerRegistry() *ConfigProducerRegistry

NewDefaultConfigProducerRegistry creates a new producer registry.

func (*ConfigProducerRegistry) RegisterPredicate Uses

func (f *ConfigProducerRegistry) RegisterPredicate(name string, producer ConfigProducer) error

RegisterPredicate registers a config producer for a predicate.

func (*ConfigProducerRegistry) RegisterPriority Uses

func (f *ConfigProducerRegistry) RegisterPriority(name string, producer ConfigProducer) error

RegisterPriority registers a framework config producer for a priority.

type RegistryArgs Uses

type RegistryArgs struct {
    VolumeBinder *volumebinder.VolumeBinder
}

RegistryArgs arguments needed to create default plugin factories.

Directories

PathSynopsis
imagelocality
interpodaffinity
migration
nodeaffinity
nodelabel
nodename
nodeports
nodepreferavoidpods
noderesources
nodeunschedulable
nodevolumelimits
podtopologyspread
requestedtocapacityratio
serviceaffinity
tainttoleration
volumebinding
volumerestrictions
volumezone

Package plugins imports 27 packages (graph) and is imported by 11 packages. Updated 2019-11-12. Refresh now. Tools for package owners.