package
1.1.0
Repository: https://github.com/pelioniot/edge-kubelet.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

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

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