@@ -305,8 +305,9 @@ spec:
305
305
with the corresponding weight.
306
306
properties :
307
307
labelSelector :
308
- description : A label query over a set of resources,
309
- in this case pods.
308
+ description : |-
309
+ A label query over a set of resources, in this case pods.
310
+ If it's null, this PodAffinityTerm matches with no Pods.
310
311
properties :
311
312
matchExpressions :
312
313
description : matchExpressions is a list
@@ -350,6 +351,36 @@ spec:
350
351
type : object
351
352
type : object
352
353
x-kubernetes-map-type : atomic
354
+ matchLabelKeys :
355
+ description : |-
356
+ MatchLabelKeys is a set of pod label keys to select which pods will
357
+ be taken into consideration. The keys are used to lookup values from the
358
+ incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)`
359
+ to select the group of existing pods which pods will be taken into consideration
360
+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
361
+ pod labels will be ignored. The default value is empty.
362
+ The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.
363
+ Also, MatchLabelKeys cannot be set when LabelSelector isn't set.
364
+ This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.
365
+ items :
366
+ type : string
367
+ type : array
368
+ x-kubernetes-list-type : atomic
369
+ mismatchLabelKeys :
370
+ description : |-
371
+ MismatchLabelKeys is a set of pod label keys to select which pods will
372
+ be taken into consideration. The keys are used to lookup values from the
373
+ incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)`
374
+ to select the group of existing pods which pods will be taken into consideration
375
+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
376
+ pod labels will be ignored. The default value is empty.
377
+ The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector.
378
+ Also, MismatchLabelKeys cannot be set when LabelSelector isn't set.
379
+ This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.
380
+ items :
381
+ type : string
382
+ type : array
383
+ x-kubernetes-list-type : atomic
353
384
namespaceSelector :
354
385
description : |-
355
386
A label query over the set of namespaces that the term applies to.
@@ -450,8 +481,9 @@ spec:
450
481
a pod of the set of pods is running
451
482
properties :
452
483
labelSelector :
453
- description : A label query over a set of resources,
454
- in this case pods.
484
+ description : |-
485
+ A label query over a set of resources, in this case pods.
486
+ If it's null, this PodAffinityTerm matches with no Pods.
455
487
properties :
456
488
matchExpressions :
457
489
description : matchExpressions is a list of label
@@ -495,6 +527,36 @@ spec:
495
527
type : object
496
528
type : object
497
529
x-kubernetes-map-type : atomic
530
+ matchLabelKeys :
531
+ description : |-
532
+ MatchLabelKeys is a set of pod label keys to select which pods will
533
+ be taken into consideration. The keys are used to lookup values from the
534
+ incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)`
535
+ to select the group of existing pods which pods will be taken into consideration
536
+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
537
+ pod labels will be ignored. The default value is empty.
538
+ The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.
539
+ Also, MatchLabelKeys cannot be set when LabelSelector isn't set.
540
+ This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.
541
+ items :
542
+ type : string
543
+ type : array
544
+ x-kubernetes-list-type : atomic
545
+ mismatchLabelKeys :
546
+ description : |-
547
+ MismatchLabelKeys is a set of pod label keys to select which pods will
548
+ be taken into consideration. The keys are used to lookup values from the
549
+ incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)`
550
+ to select the group of existing pods which pods will be taken into consideration
551
+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
552
+ pod labels will be ignored. The default value is empty.
553
+ The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector.
554
+ Also, MismatchLabelKeys cannot be set when LabelSelector isn't set.
555
+ This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.
556
+ items :
557
+ type : string
558
+ type : array
559
+ x-kubernetes-list-type : atomic
498
560
namespaceSelector :
499
561
description : |-
500
562
A label query over the set of namespaces that the term applies to.
@@ -593,8 +655,9 @@ spec:
593
655
with the corresponding weight.
594
656
properties :
595
657
labelSelector :
596
- description : A label query over a set of resources,
597
- in this case pods.
658
+ description : |-
659
+ A label query over a set of resources, in this case pods.
660
+ If it's null, this PodAffinityTerm matches with no Pods.
598
661
properties :
599
662
matchExpressions :
600
663
description : matchExpressions is a list
@@ -638,6 +701,36 @@ spec:
638
701
type : object
639
702
type : object
640
703
x-kubernetes-map-type : atomic
704
+ matchLabelKeys :
705
+ description : |-
706
+ MatchLabelKeys is a set of pod label keys to select which pods will
707
+ be taken into consideration. The keys are used to lookup values from the
708
+ incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)`
709
+ to select the group of existing pods which pods will be taken into consideration
710
+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
711
+ pod labels will be ignored. The default value is empty.
712
+ The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.
713
+ Also, MatchLabelKeys cannot be set when LabelSelector isn't set.
714
+ This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.
715
+ items :
716
+ type : string
717
+ type : array
718
+ x-kubernetes-list-type : atomic
719
+ mismatchLabelKeys :
720
+ description : |-
721
+ MismatchLabelKeys is a set of pod label keys to select which pods will
722
+ be taken into consideration. The keys are used to lookup values from the
723
+ incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)`
724
+ to select the group of existing pods which pods will be taken into consideration
725
+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
726
+ pod labels will be ignored. The default value is empty.
727
+ The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector.
728
+ Also, MismatchLabelKeys cannot be set when LabelSelector isn't set.
729
+ This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.
730
+ items :
731
+ type : string
732
+ type : array
733
+ x-kubernetes-list-type : atomic
641
734
namespaceSelector :
642
735
description : |-
643
736
A label query over the set of namespaces that the term applies to.
@@ -738,8 +831,9 @@ spec:
738
831
a pod of the set of pods is running
739
832
properties :
740
833
labelSelector :
741
- description : A label query over a set of resources,
742
- in this case pods.
834
+ description : |-
835
+ A label query over a set of resources, in this case pods.
836
+ If it's null, this PodAffinityTerm matches with no Pods.
743
837
properties :
744
838
matchExpressions :
745
839
description : matchExpressions is a list of label
@@ -783,6 +877,36 @@ spec:
783
877
type : object
784
878
type : object
785
879
x-kubernetes-map-type : atomic
880
+ matchLabelKeys :
881
+ description : |-
882
+ MatchLabelKeys is a set of pod label keys to select which pods will
883
+ be taken into consideration. The keys are used to lookup values from the
884
+ incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)`
885
+ to select the group of existing pods which pods will be taken into consideration
886
+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
887
+ pod labels will be ignored. The default value is empty.
888
+ The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.
889
+ Also, MatchLabelKeys cannot be set when LabelSelector isn't set.
890
+ This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.
891
+ items :
892
+ type : string
893
+ type : array
894
+ x-kubernetes-list-type : atomic
895
+ mismatchLabelKeys :
896
+ description : |-
897
+ MismatchLabelKeys is a set of pod label keys to select which pods will
898
+ be taken into consideration. The keys are used to lookup values from the
899
+ incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)`
900
+ to select the group of existing pods which pods will be taken into consideration
901
+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
902
+ pod labels will be ignored. The default value is empty.
903
+ The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector.
904
+ Also, MismatchLabelKeys cannot be set when LabelSelector isn't set.
905
+ This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.
906
+ items :
907
+ type : string
908
+ type : array
909
+ x-kubernetes-list-type : atomic
786
910
namespaceSelector :
787
911
description : |-
788
912
A label query over the set of namespaces that the term applies to.
0 commit comments