mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +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
|
// In injects a matchExpression (with an operator IN) as a selectorTerm
|
||||||
// to the inner nodeSelector.
|
// 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 {
|
func (s *NodeSelectorWrapper) In(key string, vals []string, t NodeSelectorType) *NodeSelectorWrapper {
|
||||||
expression := v1.NodeSelectorRequirement{
|
expression := v1.NodeSelectorRequirement{
|
||||||
Key: key,
|
Key: key,
|
||||||
@ -435,7 +435,7 @@ func (p *PodWrapper) NodeAffinityIn(key string, vals []string, t NodeSelectorTyp
|
|||||||
return p
|
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.
|
// and injects into the inner pod.
|
||||||
func (p *PodWrapper) NodeAffinityNotIn(key string, vals []string) *PodWrapper {
|
func (p *PodWrapper) NodeAffinityNotIn(key string, vals []string) *PodWrapper {
|
||||||
if p.Spec.Affinity == nil {
|
if p.Spec.Affinity == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user