package
0.0.0-20190319231021-e6272b887b81
Repository: https://github.com/marun/kubernetes.git
Documentation: pkg.go.dev

# Functions

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.
NewConfigFactory initializes the default implementation of a Configurator.
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.
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.
RegisterPredicateMetadataProducerFactory registers a PredicateMetadataProducerFactory.
RegisterPriorityConfigFactory registers a priority config factory with its name.
RegisterPriorityFunction registers a priority function with the algorithm registry.
RegisterPriorityFunction2 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.

# Constants

DefaultProvider defines the default algorithm provider name.

# 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.
PluginFactoryArgs are passed to all plugin factory functions.
PriorityConfigFactory produces a PriorityConfig from the given function and weight.

# Interfaces

Binder knows how to write a binding.
Configurator defines I/O, caching, and other functionality needed to construct a new scheduler.
PodConditionUpdater updates the condition of a pod based on the passed PodCondition.
PodPreemptor has methods needed to delete a pod and to update annotations of the preemptor pod.

# Type aliases

FitPredicateFactory produces a FitPredicate from the given args.
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.