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 57dbbaf3e45..93522f31b06 100644 --- a/pkg/scheduler/framework/plugins/serviceaffinity/service_affinity.go +++ b/pkg/scheduler/framework/plugins/serviceaffinity/service_affinity.go @@ -34,7 +34,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 7184263f7c5..7f596ca101f 100644 --- a/pkg/scheduler/framework/plugins/tainttoleration/taint_toleration.go +++ b/pkg/scheduler/framework/plugins/tainttoleration/taint_toleration.go @@ -40,7 +40,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 // ErrReasonNotMatch is the Filter reason status when not matching. ErrReasonNotMatch = "node(s) had taints that the pod didn't tolerate"