package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev
# Functions
BuildNodeInfos build NodeInfo slice from a v1.Node slice.
ErrorPredicateExtender implements FitPredicate function to always return error status.
ErrorPrioritizerExtender implements PriorityFunc function to always return error.
FalsePredicateExtender implements FitPredicate function to always return unschedulable status.
NewEqualPrioritizerPlugin returns a factory function to build equalPrioritizerPlugin.
NewFakeFilterPlugin initializes a fakeFilterPlugin and returns it.
NewFakePermitPlugin initializes a fakePermitPlugin and returns it.
NewFakePreBindPlugin initializes a fakePreBindPlugin and returns it.
NewFakePreFilterPlugin initializes a fakePreFilterPlugin and returns it.
NewFakeReservePlugin initializes a fakeReservePlugin and returns it.
NewFalseFilterPlugin initializes a FalseFilterPlugin and returns it.
NewFramework creates a Framework from the register functions and options.
NewMatchFilterPlugin initializes a MatchFilterPlugin and returns it.
NewNode2PrioritizerPlugin returns a factory function to build node2PrioritizerPlugin.
NewTrueFilterPlugin initializes a TrueFilterPlugin and returns it.
Node1PredicateExtender implements FitPredicate function to return true when the given node's name is "node1"; otherwise return false.
Node1PrioritizerExtender implements PriorityFunc function to give score 10 if the given node's name is "node1"; otherwise score 1.
Node2PredicateExtender implements FitPredicate function to return true when the given node's name is "node2"; otherwise return false.
Node2PrioritizerExtender implements PriorityFunc function to give score 10 if the given node's name is "node2"; otherwise score 1.
RegisterBindPlugin returns a function to register a Bind Plugin to a given registry.
RegisterFilterPlugin returns a function to register a Filter Plugin to a given registry.
RegisterPermitPlugin returns a function to register a Permit Plugin to a given registry.
RegisterPluginAsExtensions returns a function to register a Plugin as given extensionPoints to a given registry.
RegisterPluginAsExtensionsWithWeight returns a function to register a Plugin as given extensionPoints with weight to a given registry.
RegisterPreBindPlugin returns a function to register a PreBind Plugin to a given registry.
RegisterPreFilterPlugin returns a function to register a PreFilter Plugin to a given registry.
RegisterPreScorePlugin returns a function to register a Score Plugin to a given registry.
RegisterQueueSortPlugin returns a function to register a QueueSort Plugin to a given registry.
RegisterReservePlugin returns a function to register a Reserve Plugin to a given registry.
RegisterScorePlugin returns a function to register a Score Plugin to a given registry.
TruePredicateExtender implements FitPredicate function to always return success status.
# Constants
ErrReasonFake is a fake error message denotes the filter function errored.
# Structs
FakeExtender is a data struct which implements the Extender interface.
FakeFilterPlugin is a test filter plugin to record how many times its Filter() function have been called, and it returns different 'Code' depending on its internal 'failedNodeReturnCodeMap'.
FakePermitPlugin is a test permit plugin.
FakePreBindPlugin is a test prebind plugin.
FakePreFilterPlugin is a test filter plugin.
FakeReservePlugin is a test reserve plugin.
FalseFilterPlugin is a filter plugin which always return Unschedulable when Filter function is called.
MatchFilterPlugin is a filter plugin which return Success when the evaluated pod and node have the same name; otherwise return Unschedulable.
PriorityConfig is used in fake extender to perform Prioritize function.
TrueFilterPlugin is a filter plugin which always return Success when Filter function is called.
# Type aliases
ControllerLister implements ControllerLister on []v1.ReplicationController for test purposes.
CSINodeLister declares a storagev1.CSINode type for testing.
FitPredicate is a function type which is used in fake extender.
NodeInfoLister declares a framework.NodeInfo type for testing.
PersistentVolumeClaimLister declares a []v1.PersistentVolumeClaim type for testing.
PersistentVolumeLister declares a []v1.PersistentVolume type for testing.
PriorityFunc is a function type which is used in fake extender.
RegisterPluginFunc is a function signature used in method RegisterFilterPlugin() to register a Filter Plugin to a given registry.
ReplicaSetLister implements ControllerLister on []extensions.ReplicaSet for test purposes.
ServiceLister implements ServiceLister on []v1.Service for test purposes.
StatefulSetLister implements ControllerLister on []appsv1.StatefulSet for testing purposes.
StorageClassLister declares a []storagev1.StorageClass type for testing.
VolumeAttachmentLister declares a []storagev1.VolumeAttachment type for testing.