From fabd449d7fe376e0cae2411870434be79b021bb8 Mon Sep 17 00:00:00 2001 From: A-transformer Date: Fri, 7 Mar 2025 17:50:03 +0400 Subject: [PATCH 1/2] fix typo MatchExpressions , fix typo --- pkg/scheduler/testing/wrappers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scheduler/testing/wrappers.go b/pkg/scheduler/testing/wrappers.go index dc9daec425f..9ee997e703e 100644 --- a/pkg/scheduler/testing/wrappers.go +++ b/pkg/scheduler/testing/wrappers.go @@ -435,7 +435,7 @@ func (p *PodWrapper) NodeAffinityIn(key string, vals []string, t NodeSelectorTyp return p } -// NodeAffinityNotIn creates a HARD node affinity (with MatchExpressinos and the operator NotIn) +// NodeAffinityNotIn creates a HARD node affinity (with MatchExpressions and the operator NotIn) // and injects into the inner pod. func (p *PodWrapper) NodeAffinityNotIn(key string, vals []string) *PodWrapper { if p.Spec.Affinity == nil { From decd11414b08618eb05b7d40d633f49832e73db0 Mon Sep 17 00:00:00 2001 From: A-transformer Date: Tue, 18 Mar 2025 09:56:15 +0400 Subject: [PATCH 2/2] fix typo selecterTerms -> selectorTerms --- pkg/scheduler/testing/wrappers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scheduler/testing/wrappers.go b/pkg/scheduler/testing/wrappers.go index 9ee997e703e..bb431158aba 100644 --- a/pkg/scheduler/testing/wrappers.go +++ b/pkg/scheduler/testing/wrappers.go @@ -53,7 +53,7 @@ const ( // In injects a matchExpression (with an operator IN) as a selectorTerm // to the inner nodeSelector. -// NOTE: appended selecterTerms are ORed. +// NOTE: appended selectorTerms are ORed. func (s *NodeSelectorWrapper) In(key string, vals []string, t NodeSelectorType) *NodeSelectorWrapper { expression := v1.NodeSelectorRequirement{ Key: key,