package
0.0.0-20191024030528-a481964b876e
Repository: https://github.com/divinerapier/learn-kubernetes.git
Documentation: pkg.go.dev

# Packages

Package algorithm contains a generic Scheduler interface and several implementations.
No description provided by the author
Package api contains scheduler API objects.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AddAllEventHandlers is a helper function used in tests and in Scheduler to add event handlers for various informers.
ApplyPredicatesAndPriorities sets state of predicates and priorities to `s`.
GetAlgorithmProvider should not be used to modify providers.
InsertPredicateKeyToAlgoProvider insert a fit predicate key to algorithmProvider.
InsertPredicateKeyToAlgorithmProviderMap insert a fit predicate key to all algorithmProviders which in algorithmProviderMap.
InsertPriorityKeyToAlgorithmProviderMap inserts a priority function to all algorithmProviders which are in algorithmProviderMap.
IsFitPredicateRegistered is useful for testing providers.
IsPriorityFunctionRegistered is useful for testing providers.
ListAlgorithmProviders is called when listing all available algorithm providers in `kube-scheduler --help`.
ListRegisteredFitPredicates returns the registered fit predicates.
ListRegisteredPriorityFunctions returns the registered priority functions.
MakeDefaultErrorFunc construct a function to handle pod scheduler error.
New returns a Scheduler.
NewConfigFactory initializes the default implementation of a Configurator.
NewFromConfig returns a new scheduler using the provided Config.
NewPodInformer creates a shared index informer that returns only non-terminal pods.
RegisterAlgorithmProvider registers a new algorithm provider with the algorithm registry.
RegisterCustomFitPredicate registers a custom fit predicate with the algorithm registry.
RegisterCustomPriorityFunction registers a custom priority function with the algorithm registry.
RegisteredPredicatesAndPrioritiesSnapshot returns a snapshot of current registered predicates and priorities.
RegisterFitPredicate registers a fit predicate with the algorithm registry.
RegisterFitPredicateFactory registers a fit predicate factory with the algorithm registry.
RegisterMandatoryFitPredicate registers a fit predicate with the algorithm registry, the predicate is used by kubelet, DaemonSet; it is always included in configuration.
RegisterPredicateMetadataProducer registers a PredicateMetadataProducer.
RegisterPriorityConfigFactory registers a priority config factory with its name.
RegisterPriorityFunction registers a priority function with the algorithm registry.
RegisterPriorityMapReduceFunction registers a priority function with the algorithm registry.
RegisterPriorityMetadataProducerFactory registers a PriorityMetadataProducerFactory.
RemoveFitPredicate removes a fit predicate from factory.
RemovePredicateKeyFromAlgoProvider removes a fit predicate key from algorithmProvider.
RemovePredicateKeyFromAlgorithmProviderMap removes a fit predicate key from all algorithmProviders which in algorithmProviderMap.
WithBindTimeoutSeconds sets bindTimeoutSeconds for Scheduler, the default value is 100.
WithFrameworkConfigProducerRegistry sets the framework plugin producer registry.
WithFrameworkDefaultRegistry sets the framework's default registry.
WithFrameworkOutOfTreeRegistry sets the registry for out-of-tree plugins.
WithFrameworkPluginConfig sets the PluginConfig slice that the framework should be configured with.
WithFrameworkPlugins sets the plugins that the framework should be configured with.
WithHardPodAffinitySymmetricWeight sets hardPodAffinitySymmetricWeight for Scheduler, the default value is 1.
WithName sets schedulerName for Scheduler, the default schedulerName is default-scheduler.
WithPercentageOfNodesToScore sets percentageOfNodesToScore for Scheduler, the default value is 50.
WithPodInitialBackoffSeconds sets podInitialBackoffSeconds for Scheduler, the default value is 1.
WithPodMaxBackoffSeconds sets podMaxBackoffSeconds for Scheduler, the default value is 10.
WithPreemptionDisabled sets disablePreemption for Scheduler, the default value is false.

# Constants

BindTimeoutSeconds defines the default bind timeout.
DefaultProvider defines the default algorithm provider name.
SchedulerError is the reason recorded for events when an error occurs during scheduling a pod.

# Structs

AlgorithmProviderConfig is used to store the configuration of algorithm providers.
Config is an implementation of the Scheduler's configured input data.
ConfigFactoryArgs is a set arguments passed to NewConfigFactory.
Configurator defines I/O, caching, and other functionality needed to construct a new scheduler.
PluginFactoryArgs are passed to all plugin factory functions.
PriorityConfigFactory produces a PriorityConfig from the given function and weight.
Scheduler watches for new unscheduled pods.
Snapshot is used to store current state of registered predicates and priorities.

# Interfaces

Binder knows how to write a binding.

# Type aliases

FitPredicateFactory produces a FitPredicate from the given args.
Option configures a Scheduler.
PredicateMetadataProducerFactory produces PredicateMetadataProducer from the given args.
PriorityFunctionFactory produces a PriorityConfig from the given args.
PriorityFunctionFactory2 produces map & reduce priority functions from a given args.
PriorityMetadataProducerFactory produces PriorityMetadataProducer from the given args.