# Packages
No description provided by the author
# Functions
CalculateEvenPodsSpreadPriority computes a score by checking through the topologySpreadConstraints that are with WhenUnsatisfiable=ScheduleAnyway (a.k.a soft constraint).
CalculateNodeAffinityPriorityMap prioritizes nodes according to node affinity scheduling preferences indicated in PreferredDuringSchedulingIgnoredDuringExecution.
CalculateNodePreferAvoidPodsPriorityMap priorities nodes according to the node annotation "scheduler.alpha.kubernetes.io/preferAvoidPods".
ComputeTaintTolerationPriorityMap prepares the priority list for all the nodes based on the number of intolerable taints on the node.
EmptyPriorityMetadataProducer returns a no-op PriorityMetadataProducer type.
ImageLocalityPriorityMap is a priority function that favors nodes that already have requested pod container's images.
NewFunctionShape creates instance of FunctionShape in a safe way performing all necessary sanity checks.
NewInterPodAffinityPriority creates an InterPodAffinity.
NewNodeLabelPriority creates a NodeLabelPrioritizer.
NewPriorityMetadataFactory creates a PriorityMetadataFactory.
NewSelectorSpreadPriority creates a SelectorSpread.
NewServiceAntiAffinityPriority creates a ServiceAntiAffinity.
NormalizeReduce generates a PriorityReduceFunction that can normalize the result scores to [0, maxPriority].
RequestedToCapacityRatioResourceAllocationPriority creates a requestedToCapacity based ResourceAllocationPriority using provided resource scoring function shape.
RequestedToCapacityRatioResourceAllocationPriorityDefault creates a requestedToCapacity based ResourceAllocationPriority using default resource scoring function shape.
ResourceLimitsPriorityMap is a priority function that increases score of input node by 1 if the node satisfies input pod's resource limits.
# Constants
BalancedResourceAllocation defines the name of prioritizer function that prioritizes nodes to help achieve balanced resource usage.
EqualPriority defines the name of prioritizer function that gives an equal weight of one to all nodes.
EvenPodsSpreadPriority defines the name of prioritizer function that prioritizes nodes which have pods and labels matching the incoming pod's topologySpreadConstraints.
ImageLocalityPriority defines the name of prioritizer function that prioritizes nodes that have images requested by the pod present.
InterPodAffinityPriority defines the name of prioritizer function that decides which pods should or should not be placed in the same topological domain as some other pods.
LeastRequestedPriority defines the name of prioritizer function that prioritize nodes by least requested utilization.
MostRequestedPriority defines the name of prioritizer function that gives used nodes higher priority.
NodeAffinityPriority defines the name of prioritizer function that prioritizes nodes which have labels matching NodeAffinity.
NodePreferAvoidPodsPriority defines the name of prioritizer function that priorities nodes according to the node annotation "scheduler.alpha.kubernetes.io/preferAvoidPods".
RequestedToCapacityRatioPriority defines the name of RequestedToCapacityRatioPriority.
ResourceLimitsPriority defines the nodes of prioritizer function ResourceLimitsPriority.
SelectorSpreadPriority defines the name of prioritizer function that spreads pods by minimizing the number of pods (belonging to the same service or replication controller) on the same node.
ServiceSpreadingPriority is largely replaced by "SelectorSpreadPriority".
TaintTolerationPriority defines the name of prioritizer function that prioritizes nodes that marked with taint which pod can tolerate.
# Variables
BalancedResourceAllocationMap favors nodes with balanced resource usage rate.
CalculateNodeAffinityPriorityReduce is a reduce function for node affinity priority calculation.
ComputeTaintTolerationPriorityReduce calculates the source of each node based on the number of intolerable taints on the node.
DefaultRequestedRatioResources is used to set default requestToWeight map for CPU and memory.
LeastRequestedPriorityMap is a priority function that favors nodes with fewer requested resources.
MostRequestedPriorityMap is a priority function that favors nodes with most requested resources.
# Structs
FunctionShapePoint represents single point in scoring function shape.
InterPodAffinity contains information to calculate inter pod affinity.
NodeLabelPrioritizer contains information to calculate node label priority.
PriorityConfig is a config used for a priority function.
PriorityMetadataFactory is a factory to produce PriorityMetadata.
ResourceAllocationPriority contains information to calculate resource allocation priority.
SelectorSpread contains information to calculate selector spread priority.
ServiceAntiAffinity contains information to calculate service anti-affinity priority.
# Type aliases
FunctionShape represents shape of scoring function.
PriorityFunction is a function that computes scores for all nodes.
PriorityMapFunction is a function that computes per-node results for a given node.
PriorityMetadataProducer is a function that computes metadata for a given pod.
PriorityReduceFunction is a function that aggregated per-node results and computes final scores for all nodes.
ResourceToValueMap contains resource name and score.
ResourceToWeightMap contains resource name and weight.