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`.
346
346
` ` ` go
347
347
type LabelSelectorOperator string
348
348
349
+ // Only ` In` and `NotIn` are expected for LabelSelectorOperator.
350
+ const (
351
+ InLabelSelectorOperator LabelSelectorOperator = "In"
352
+ NotInLabelSelectorOperator LabelSelectorOperator = "NotIn"
353
+ )
354
+
349
355
type MatchLabelSelector struct {
350
356
// Key is used to lookup value from the incoming pod labels,
351
357
// and that key-value label is merged with `LabelSelector`.
352
358
// Key that doesn't exist in the incoming pod labels will be ignored.
353
359
Key string
354
360
// Operator defines how key-value, fetched via the above `Keys`, is merged into LabelSelector.
361
+ // Only `In` and `NotIn` are expected.
355
362
// If Operator is `In`, `key in (value)` is merged with LabelSelector.
356
363
// If Operator is `NotIn`, `key notin (value)` is merged with LabelSelector.
357
364
//
You can’t perform that action at this time.
0 commit comments