package
1.12.0-alpha.0
Repository: https://github.com/wking/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.
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.
NewConfigFactory initializes the default implementation of a Configurator To encourage eventual privatization of the struct type, we only return the interface.
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.
PluginFactoryArgs are passed to all plugin factory functions.
PriorityConfigFactory produces a PriorityConfig from the given function and weight.

# 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.