From e0582320c1848bb2719353acaaab08ba30db223c Mon Sep 17 00:00:00 2001 From: dkkb Date: Fri, 18 Feb 2022 13:40:51 +0800 Subject: [PATCH] Fix typo allcoated -> allocated --- pkg/scheduler/apis/config/types_pluginargs.go | 4 ++-- .../k8s.io/kube-scheduler/config/v1beta2/types_pluginargs.go | 4 ++-- .../k8s.io/kube-scheduler/config/v1beta3/types_pluginargs.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/scheduler/apis/config/types_pluginargs.go b/pkg/scheduler/apis/config/types_pluginargs.go index a8143e019d7..e3f909da3df 100644 --- a/pkg/scheduler/apis/config/types_pluginargs.go +++ b/pkg/scheduler/apis/config/types_pluginargs.go @@ -184,9 +184,9 @@ type NodeAffinityArgs struct { type ScoringStrategyType string const ( - // LeastAllocated strategy prioritizes nodes with least allcoated resources. + // LeastAllocated strategy prioritizes nodes with least allocated resources. LeastAllocated ScoringStrategyType = "LeastAllocated" - // MostAllocated strategy prioritizes nodes with most allcoated resources. + // MostAllocated strategy prioritizes nodes with most allocated resources. MostAllocated ScoringStrategyType = "MostAllocated" // RequestedToCapacityRatio strategy allows specifying a custom shape function // to score nodes based on the request to capacity ratio. diff --git a/staging/src/k8s.io/kube-scheduler/config/v1beta2/types_pluginargs.go b/staging/src/k8s.io/kube-scheduler/config/v1beta2/types_pluginargs.go index 34768d3c9ab..feb715497a5 100644 --- a/staging/src/k8s.io/kube-scheduler/config/v1beta2/types_pluginargs.go +++ b/staging/src/k8s.io/kube-scheduler/config/v1beta2/types_pluginargs.go @@ -192,9 +192,9 @@ type NodeAffinityArgs struct { type ScoringStrategyType string const ( - // LeastAllocated strategy prioritizes nodes with least allcoated resources. + // LeastAllocated strategy prioritizes nodes with least allocated resources. LeastAllocated ScoringStrategyType = "LeastAllocated" - // MostAllocated strategy prioritizes nodes with most allcoated resources. + // MostAllocated strategy prioritizes nodes with most allocated resources. MostAllocated ScoringStrategyType = "MostAllocated" // RequestedToCapacityRatio strategy allows specifying a custom shape function // to score nodes based on the request to capacity ratio. diff --git a/staging/src/k8s.io/kube-scheduler/config/v1beta3/types_pluginargs.go b/staging/src/k8s.io/kube-scheduler/config/v1beta3/types_pluginargs.go index 2c3fa4cbbe0..e5451509f91 100644 --- a/staging/src/k8s.io/kube-scheduler/config/v1beta3/types_pluginargs.go +++ b/staging/src/k8s.io/kube-scheduler/config/v1beta3/types_pluginargs.go @@ -192,9 +192,9 @@ type NodeAffinityArgs struct { type ScoringStrategyType string const ( - // LeastAllocated strategy prioritizes nodes with least allcoated resources. + // LeastAllocated strategy prioritizes nodes with least allocated resources. LeastAllocated ScoringStrategyType = "LeastAllocated" - // MostAllocated strategy prioritizes nodes with most allcoated resources. + // MostAllocated strategy prioritizes nodes with most allocated resources. MostAllocated ScoringStrategyType = "MostAllocated" // RequestedToCapacityRatio strategy allows specifying a custom shape function // to score nodes based on the request to capacity ratio.