Skip to content

Commit 99a018c

Browse files
committed
Add FeatureGate toggling implementation change since v1.33
1 parent 40c3c7f commit 99a018c

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

content/en/docs/concepts/scheduling-eviction/topology-spread-constraints.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ your cluster. Those fields are:
168168
{{< note >}}
169169
The `matchLabelKeys` field is a beta-level field and enabled by default in 1.27. You can disable it by disabling the
170170
`MatchLabelKeysInPodTopologySpread` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/).
171+
172+
Before v1.33, kube-scheduler just internally handled `matchLabelKeys` before the calculation of scheduling results.
173+
Since v1.33, merging selectors built from `matchLabelKeys` into `labelSelector` is enabled by default.
174+
You can disable it and revert to the previous behavior by disabling the `MatchLabelKeysInPodTopologySpreadSelectorMerge`
175+
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/) of kube-apiserver.
171176
{{< /note >}}
172177

173178
- **nodeAffinityPolicy** indicates how we will treat Pod's nodeAffinity/nodeSelector
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: MatchLabelKeysInPodTopologySpreadSelectorMerge
3+
content_type: feature_gate
4+
_build:
5+
list: never
6+
render: false
7+
8+
stages:
9+
- stage: beta
10+
defaultValue: true
11+
fromVersion: "1.33"
12+
---
13+
Enable merging of selectors built from `matchLabelKeys` into `labelSelector` of
14+
[Pod topology spread constraints](/docs/concepts/scheduling-eviction/topology-spread-constraints/).

0 commit comments

Comments
 (0)