commit
4fdc1a7c73
|
@ -631,9 +631,8 @@ may also be used with field selectors when included in the `spec.versions[*].sel
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
The `spec.versions[*].selectableFields` field of a {{< glossary_tooltip term_id="CustomResourceDefinition" text="CustomResourceDefinition" >}} may be used to
|
The `spec.versions[*].selectableFields` field of a {{< glossary_tooltip term_id="CustomResourceDefinition" text="CustomResourceDefinition" >}} may be used to
|
||||||
declare which other fields in a custom resource may be used in field selectors
|
declare which other fields in a custom resource may be used in field selectors.
|
||||||
with the feature of `CustomResourceFieldSelectors`
|
|
||||||
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/) (This feature gate is enabled by default since Kubernetes v1.31).
|
|
||||||
The following example adds the `.spec.color` and `.spec.size` fields as
|
The following example adds the `.spec.color` and `.spec.size` fields as
|
||||||
selectable fields.
|
selectable fields.
|
||||||
-->
|
-->
|
||||||
|
@ -642,9 +641,7 @@ selectable fields.
|
||||||
来使用此行为,然后将其应用到集群中的所有 CustomResourceDefinitions。
|
来使用此行为,然后将其应用到集群中的所有 CustomResourceDefinitions。
|
||||||
|
|
||||||
{{< glossary_tooltip term_id="CustomResourceDefinition" text="CustomResourceDefinition" >}}
|
{{< glossary_tooltip term_id="CustomResourceDefinition" text="CustomResourceDefinition" >}}
|
||||||
字段可以用来在启用了 `CustomResourceFieldSelectors`
|
字段可以用来控制哪些字段可以用在字段选择算符中。
|
||||||
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)
|
|
||||||
(自 Kubernetes v1.31 起,此特性默认启用)的集群中控制哪些字段可以用在字段选择算符中。
|
|
||||||
|
|
||||||
以下示例将 `.spec.color` 和 `.spec.size` 字段添加为可选择字段。
|
以下示例将 `.spec.color` 和 `.spec.size` 字段添加为可选择字段。
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue