mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #130638 from A-transformer/fix_typo_matchexpressions
fix typo
This commit is contained in:
commit
473533adaa
@ -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,
|
||||
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user