mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Add explain for register TaintTolerationPriority function.
This commit is contained in:
parent
f4afdecef8
commit
f27bc9444d
@ -225,7 +225,7 @@ func defaultPriorities() sets.String {
|
|||||||
// Prioritizes nodes that have labels matching NodeAffinity
|
// Prioritizes nodes that have labels matching NodeAffinity
|
||||||
factory.RegisterPriorityFunction2("NodeAffinityPriority", priorities.CalculateNodeAffinityPriorityMap, priorities.CalculateNodeAffinityPriorityReduce, 1),
|
factory.RegisterPriorityFunction2("NodeAffinityPriority", priorities.CalculateNodeAffinityPriorityMap, priorities.CalculateNodeAffinityPriorityReduce, 1),
|
||||||
|
|
||||||
// TODO: explain what it does.
|
// Prioritizes nodes that marked with taint which pod can tolerate.
|
||||||
factory.RegisterPriorityFunction2("TaintTolerationPriority", priorities.ComputeTaintTolerationPriorityMap, priorities.ComputeTaintTolerationPriorityReduce, 1),
|
factory.RegisterPriorityFunction2("TaintTolerationPriority", priorities.ComputeTaintTolerationPriorityMap, priorities.ComputeTaintTolerationPriorityReduce, 1),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user