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

# Functions

MakeNextPodFunc returns a function to retrieve the next pod from a given scheduling queue.
NewPodBackoffMap creates a PodBackoffMap with initial duration and max duration.
NewPriorityQueue creates a PriorityQueue object.
NewSchedulingQueue initializes a priority queue as a new scheduling queue.
NominatedNodeName returns nominated node name of a Pod.
WithClock sets clock for PriorityQueue, the default clock is util.RealClock.
WithPodInitialBackoffDuration sets pod initial backoff duration for PriorityQueue,.
WithPodMaxBackoffDuration sets pod max backoff duration for PriorityQueue,.

# Constants

AssignedPodAdd is the event when a pod is added that causes pods with matching affinity terms to be more schedulable.
AssignedPodDelete is the event when a pod is deleted that causes pods with matching affinity terms to be more schedulable.
AssignedPodUpdate is the event when a pod is updated that causes pods with matching affinity terms to be more schedulable.
BackoffComplete is the event when a pod finishes backoff.
CSINodeAdd is the event when a CSI node is added in the cluster.
CSINodeUpdate is the event when a CSI node is updated in the cluster.
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.
NodeAdd is the event when a new node is added to the cluster.
NodeAllocatableChange is the event when node allocatable is changed.
NodeConditionChange is the event when node condition is changed.
NodeLabelsChange is the event when node label is changed.
NodeSpecUnschedulableChange is the event when unschedulable node spec is changed.
NodeTaintsChange is the event when node taint is changed.
PodAdd is the event when a new pod is added to API server.
PvAdd is the event when a persistent volume is added in the cluster.
PvcAdd is the event when a persistent volume claim is added in the cluster.
PvcUpdate is the event when a persistent volume claim is updated in the cluster.
PvUpdate is the event when a persistent volume is updated in the cluster.
ScheduleAttemptFailure is the event when a schedule attempt fails.
ServiceAdd is the event when a service is added in the cluster.
ServiceDelete is the event when a service is deleted in the cluster.
ServiceUpdate is the event when a service is updated in the cluster.
StorageClassAdd is the event when a StorageClass is added in the cluster.
Unknown event.
UnschedulableTimeout is the event when a pod stays in unschedulable for longer than timeout.

# Structs

PodBackoffMap is a structure that stores backoff related information for pods.
PriorityQueue implements a scheduling queue.
UnschedulablePodsMap 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.