From a92766d0c7faec68c30261e518797c5351c2a641 Mon Sep 17 00:00:00 2001 From: Klaus Ma Date: Thu, 23 Mar 2017 11:08:32 +0800 Subject: [PATCH] Update comments for golint. --- plugin/pkg/scheduler/algorithm/priorities/taint_toleration.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/pkg/scheduler/algorithm/priorities/taint_toleration.go b/plugin/pkg/scheduler/algorithm/priorities/taint_toleration.go index 766b7aae39a..532a37767a3 100644 --- a/plugin/pkg/scheduler/algorithm/priorities/taint_toleration.go +++ b/plugin/pkg/scheduler/algorithm/priorities/taint_toleration.go @@ -51,7 +51,7 @@ func getAllTolerationPreferNoSchedule(tolerations []v1.Toleration) (tolerationLi return } -// ComputeTaintTolerationPriority prepares the priority list for all the nodes based on the number of intolerable taints on the node +// ComputeTaintTolerationPriorityMap prepares the priority list for all the nodes based on the number of intolerable taints on the node func ComputeTaintTolerationPriorityMap(pod *v1.Pod, meta interface{}, nodeInfo *schedulercache.NodeInfo) (schedulerapi.HostPriority, error) { node := nodeInfo.Node() if node == nil { @@ -72,6 +72,7 @@ func ComputeTaintTolerationPriorityMap(pod *v1.Pod, meta interface{}, nodeInfo * }, nil } +// ComputeTaintTolerationPriorityReduce calculates the source of each node based on the number of intolerable taints on the node func ComputeTaintTolerationPriorityReduce(pod *v1.Pod, meta interface{}, nodeNameToInfo map[string]*schedulercache.NodeInfo, result schedulerapi.HostPriorityList) error { var maxCount int for i := range result {