package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev
# Functions
NewPriorityQueue creates a PriorityQueue object.
NewSchedulingQueue initializes a priority queue as a new scheduling queue.
NewTestQueue creates a priority queue with an empty informer factory.
NewTestQueueWithObjects creates a priority queue with an informer factory populated with the provided objects.
WithClock sets clock for PriorityQueue, the default clock is clock.RealClock.
WithMetricsRecorder sets metrics recorder.
WithPluginMetricsSamplePercent sets the percentage of plugin metrics to be sampled.
WithPodInitialBackoffDuration sets pod initial backoff duration for PriorityQueue.
WithPodLister sets pod lister for PriorityQueue.
WithPodMaxBackoffDuration sets pod max backoff duration for PriorityQueue.
WithPodMaxInUnschedulablePodsDuration sets podMaxInUnschedulablePodsDuration for PriorityQueue.
WithPreEnqueuePluginMap sets preEnqueuePluginMap for PriorityQueue.
WithQueueingHintMapPerProfile sets queueingHintMap for PriorityQueue.
# Constants
DefaultPodInitialBackoffDuration is the default value for the initial backoff duration for unschedulable pods.
DefaultPodMaxBackoffDuration is the default value for the max backoff duration for unschedulable pods.
DefaultPodMaxInUnschedulablePodsDuration is the default value for the maximum time a pod can stay in unschedulablePods.
# Structs
PriorityQueue implements a scheduling queue.
QueueingHintFunction is the wrapper of QueueingHintFn that has PluginName.
UnschedulablePods holds pods that cannot be scheduled.
# Interfaces
SchedulingQueue is an interface for a queue to store pods waiting to be scheduled.
# Type aliases
Option configures a PriorityQueue.
PreEnqueueCheck is a function type.
QueueingHintMap is keyed with ClusterEvent, valued with queueing hint functions registered for the event.
QueueingHintMapPerProfile is keyed with profile name, valued with queueing hint map registered for the profile.