Skip to content

Commit 8f1e148

Browse files
jpbetzdipesh-rawatTim BannisterT-Lakshmi
authored
KEP-4358: Custom Resource Field Selectors: Promote to Beta (#46980)
* KEP-4358: Custom Resource Field Selectors: Promote to Beta * Update content/en/docs/reference/command-line-tools-reference/feature-gates/custom-resource-field-selectors.md Co-authored-by: Dipesh Rawat <[email protected]> * Remove alpha level notes about enabling the feature * Update content/en/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions.md Co-authored-by: Tim Bannister <[email protected]> * Update content/en/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions.md Co-authored-by: lakshmi prasuna <[email protected]> * Update content/en/docs/concepts/extend-kubernetes/api-extension/custom-resources.md Co-authored-by: lakshmi prasuna <[email protected]> --------- Co-authored-by: Dipesh Rawat <[email protected]> Co-authored-by: Tim Bannister <[email protected]> Co-authored-by: lakshmi prasuna <[email protected]>
1 parent 5784402 commit 8f1e148

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

content/en/docs/concepts/extend-kubernetes/api-extension/custom-resources.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -313,13 +313,10 @@ may also be used with field selectors when included in the `spec.versions[*].sel
313313

314314
{{< feature-state feature_gate_name="CustomResourceFieldSelectors" >}}
315315

316-
You need to enable the `CustomResourceFieldSelectors`
317-
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/) to
318-
use this behavior, which then applies to all CustomResourceDefinitions in your
319-
cluster.
320-
321316
The `spec.versions[*].selectableFields` field of a {{< glossary_tooltip term_id="CustomResourceDefinition" text="CustomResourceDefinition" >}} may be used to
322-
declare which other fields in a custom resource may be used in field selectors.
317+
declare which other fields in a custom resource may be used in field selectors
318+
with the feature of `CustomResourceFieldSelectors`
319+
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/) (This feature gate is enabled by default since Kubernetes v1.31).
323320
The following example adds the `.spec.color` and `.spec.size` fields as
324321
selectable fields.
325322

content/en/docs/reference/command-line-tools-reference/feature-gates/custom-resource-field-selectors.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ stages:
99
- stage: alpha
1010
defaultValue: false
1111
fromVersion: "1.30"
12+
toVersion: "1.30"
13+
- stage: beta
14+
defaultValue: true
15+
fromVersion: "1.31"
1216
---
1317

1418
Enable `selectableFields` in the

content/en/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,13 +1686,14 @@ may also be used with field selectors when included in the `spec.versions[*].sel
16861686

16871687
{{< feature-state feature_gate_name="CustomResourceFieldSelectors" >}}
16881688

1689-
You need to enable the `CustomResourceFieldSelectors`
1690-
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/) to
1691-
use this behavior, which then applies to all CustomResourceDefinitions in your
1692-
cluster.
1693-
1689+
For Kubernetes {{< skew currentVersion >}} the ability to define field selectors for
1690+
custom resources is available by default (enabled by default since Kubernetes v1.31);
1691+
you can disable it for your cluster by turning off the `CustomResourceFieldSelectors`
1692+
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/).
16941693
The `spec.versions[*].selectableFields` field of a {{< glossary_tooltip term_id="CustomResourceDefinition" text="CustomResourceDefinition" >}} may be used to
1695-
declare which other fields in a custom resource may be used in field selectors.
1694+
declare which other fields in a custom resource may be used in field selectors
1695+
with the feature of `CustomResourceFieldSelectors`
1696+
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/) (This feature gate is enabled by default since Kubernetes v1.31).
16961697
The following example adds the `.spec.color` and `.spec.size` fields as
16971698
selectable fields.
16981699

0 commit comments

Comments
 (0)