diff --git a/content/zh-cn/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions.md b/content/zh-cn/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions.md index 5db064b5108..a26fdea57e1 100644 --- a/content/zh-cn/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions.md +++ b/content/zh-cn/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions.md @@ -105,7 +105,7 @@ spec: plural: crontabs # singular name to be used as an alias on the CLI and for display singular: crontab - # kind is normally the PascalCased singular type. Your resource manifests use this. + # kind is normally the CamelCased singular type. Your resource manifests use this. kind: CronTab # shortNames allow shorter string to match your resource on the CLI shortNames: @@ -148,7 +148,7 @@ spec: plural: crontabs # 名称的单数形式,作为命令行使用时和显示时的别名 singular: crontab - # kind 通常是单数形式的帕斯卡编码(PascalCased)形式。你的资源清单会使用这一形式。 + # kind 通常是单数形式的驼峰命名(CamelCased)形式。你的资源清单会使用这一形式。 kind: CronTab # shortNames 允许你在命令行使用较短的字符串来匹配资源 shortNames: @@ -322,7 +322,7 @@ If you later recreate the same CustomResourceDefinition, it will start out empty ## 设置结构化的模式 {#specifying-a-structural-schema} @@ -1137,18 +1137,25 @@ crontab "my-new-cron-object" created --> ## 验证规则 -{{< feature-state state="alpha" for_k8s_version="v1.23" >}} +{{< feature-state state="beta" for_k8s_version="v1.25" >}} -验证规则从 1.23 开始处于 Alpha 状态, -当 `CustomResourceValidationExpressions` [特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)被启用时, -验证定制资源。这个功能只有在模式是[结构化的模式](#specifying-a-structural-schema)时才可用。 +验证规则从 1.25 开始处于 Beta 状态, +默认情况下,`CustomResourceValidationExpressions` [特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/) +是被启用的,以便根据**验证规则**来验证定制资源。 +对于 [`kube-apiserver`](docs/reference/command-line-tools-reference/kube-apiserver/) 组件, +特性门控显式设置为 false 来禁用此特性。 + +这个特性只有在模式是[结构化的模式](#specifying-a-structural-schema)时才可用。 -- `labelSelectorPath` 指定定制资源内与 `scale.status.selector` 对应的 JSON 路径。 +- `labelSelectorPath` 指定定制资源内与 `Scale.Status.Selector` 对应的 JSON 路径。 - 此字段为可选值。 - 此字段必须设置才能使用 HPA。 @@ -2706,9 +2714,9 @@ kubectl get all ``` -输出中会包含类别为 `CronTab` 的定制资源: +输出中将包含类别为 `CronTab` 的定制资源: ```console NAME AGE