File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
keps/sig-scheduling/3633-matchlabelselectors-to-podaffinity Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -346,12 +346,19 @@ A new optional field `MatchLabelSelectors` is introduced to `PodAffinityTerm`.
346346` ` ` go
347347type LabelSelectorOperator string
348348
349+ // Only ` In` and `NotIn` are expected for LabelSelectorOperator.
350+ const (
351+ InLabelSelectorOperator LabelSelectorOperator = "In"
352+ NotInLabelSelectorOperator LabelSelectorOperator = "NotIn"
353+ )
354+
349355type MatchLabelSelector struct {
350356 // Key is used to lookup value from the incoming pod labels,
351357 // and that key-value label is merged with `LabelSelector`.
352358 // Key that doesn't exist in the incoming pod labels will be ignored.
353359 Key string
354360 // Operator defines how key-value, fetched via the above `Keys`, is merged into LabelSelector.
361+ // Only `In` and `NotIn` are expected.
355362 // If Operator is `In`, `key in (value)` is merged with LabelSelector.
356363 // If Operator is `NotIn`, `key notin (value)` is merged with LabelSelector.
357364 //
You can’t perform that action at this time.
0 commit comments