From 228891de9c7c026ac5c96564f6937c1f979cd760 Mon Sep 17 00:00:00 2001 From: notpad Date: Thu, 9 Jan 2020 20:06:56 +0800 Subject: [PATCH] Fix comment --- pkg/scheduler/framework/plugins/nodeports/node_ports.go | 2 +- pkg/scheduler/framework/plugins/noderesources/fit.go | 2 +- .../framework/plugins/noderesources/resource_limits.go | 2 +- .../framework/plugins/serviceaffinity/service_affinity.go | 2 +- .../framework/plugins/tainttoleration/taint_toleration.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/scheduler/framework/plugins/nodeports/node_ports.go b/pkg/scheduler/framework/plugins/nodeports/node_ports.go index 394983572d3..8162c39126e 100644 --- a/pkg/scheduler/framework/plugins/nodeports/node_ports.go +++ b/pkg/scheduler/framework/plugins/nodeports/node_ports.go @@ -40,7 +40,7 @@ const ( // Name is the name of the plugin used in the plugin registry and configurations. Name = "NodePorts" - // preFilterStateKey is the key in CycleState to InterPodAffinity pre-computed data. + // preFilterStateKey is the key in CycleState to NodePorts pre-computed data. // Using the name of the plugin will likely help us avoid collisions with other plugins. preFilterStateKey = "PreFilter" + Name ) diff --git a/pkg/scheduler/framework/plugins/noderesources/fit.go b/pkg/scheduler/framework/plugins/noderesources/fit.go index a873e333e8b..5cbeb3cf7a8 100644 --- a/pkg/scheduler/framework/plugins/noderesources/fit.go +++ b/pkg/scheduler/framework/plugins/noderesources/fit.go @@ -38,7 +38,7 @@ const ( // FitName is the name of the plugin used in the plugin registry and configurations. FitName = "NodeResourcesFit" - // preFilterStateKey is the key in CycleState to InterPodAffinity pre-computed data. + // preFilterStateKey is the key in CycleState to NodeResourcesFit pre-computed data. // Using the name of the plugin will likely help us avoid collisions with other plugins. preFilterStateKey = "PreFilter" + FitName ) diff --git a/pkg/scheduler/framework/plugins/noderesources/resource_limits.go b/pkg/scheduler/framework/plugins/noderesources/resource_limits.go index e2136275609..444e3a8607d 100644 --- a/pkg/scheduler/framework/plugins/noderesources/resource_limits.go +++ b/pkg/scheduler/framework/plugins/noderesources/resource_limits.go @@ -39,7 +39,7 @@ const ( // ResourceLimitsName is the name of the plugin used in the plugin registry and configurations. ResourceLimitsName = "NodeResourceLimits" - // postFilterStateKey is the key in CycleState to InterPodAffinity pre-computed data. + // postFilterStateKey is the key in CycleState to NodeResourceLimits pre-computed data. // Using the name of the plugin will likely help us avoid collisions with other plugins. postFilterStateKey = "PostFilter" + ResourceLimitsName ) diff --git a/pkg/scheduler/framework/plugins/serviceaffinity/service_affinity.go b/pkg/scheduler/framework/plugins/serviceaffinity/service_affinity.go index 982a6a45ac2..67c3fe90c92 100644 --- a/pkg/scheduler/framework/plugins/serviceaffinity/service_affinity.go +++ b/pkg/scheduler/framework/plugins/serviceaffinity/service_affinity.go @@ -36,7 +36,7 @@ const ( // Name is the name of the plugin used in the plugin registry and configurations. Name = "ServiceAffinity" - // preFilterStateKey is the key in CycleState to InterPodAffinity pre-computed data. + // preFilterStateKey is the key in CycleState to ServiceAffinity pre-computed data. // Using the name of the plugin will likely help us avoid collisions with other plugins. preFilterStateKey = "PreFilter" + Name ) diff --git a/pkg/scheduler/framework/plugins/tainttoleration/taint_toleration.go b/pkg/scheduler/framework/plugins/tainttoleration/taint_toleration.go index bca276d0c18..eee490f5035 100644 --- a/pkg/scheduler/framework/plugins/tainttoleration/taint_toleration.go +++ b/pkg/scheduler/framework/plugins/tainttoleration/taint_toleration.go @@ -42,7 +42,7 @@ var _ framework.ScorePlugin = &TaintToleration{} const ( // Name is the name of the plugin used in the plugin registry and configurations. Name = "TaintToleration" - // postFilterStateKey is the key in CycleState to InterPodAffinity pre-computed data for Scoring. + // postFilterStateKey is the key in CycleState to TaintToleration pre-computed data for Scoring. postFilterStateKey = "PostFilter" + Name )