Skip to content

Commit b89e5c3

Browse files
authored
Merge pull request #29419 from Iceber/update-custom-resource-definition-versioning
[zh] update custom-resource-definition-versioning.md
2 parents b354468 + ed1ce53 commit b89e5c3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/zh/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Removing an old version:
139139
If this occurs, switch back to using `served:true` on the old version, migrate the
140140
remaining clients to the new version and repeat this step.
141141
1. Ensure the [upgrade of existing objects to the new stored version](#upgrade-existing-objects-to-a-new-stored-version) step has been completed.
142-
1. Verify that the `stored` is set to `true` for the new version in the `spec.versions` list in the CustomResourceDefinition.
142+
1. Verify that the `storage` is set to `true` for the new version in the `spec.versions` list in the CustomResourceDefinition.
143143
1. Verify that the old version is no longer listed in the CustomResourceDefinition `status.storedVersions`.
144144
1. Remove the old version from the CustomResourceDefinition `spec.versions` list.
145145
1. Drop conversion support for the old version in conversion webhooks.
@@ -156,7 +156,7 @@ Removing an old version:
156156
1. 确保已完成[将现有对象升级到新存储版本](#upgrade-existing-objects-to-a-new-stored-version)
157157
的步骤。
158158
1. 在 CustomResourceDefinition 的 `spec.versions` 列表中,确认新版本的
159-
`stored` 已被设置为 `true`
159+
`storage` 已被设置为 `true`
160160
2. 确认旧版本不在 CustomResourceDefinition `status.storedVersions` 中。
161161
1. 从 CustomResourceDefinition `spec.versions` 列表中删除旧版本。
162162
1. 在转换 Webhooks 中放弃对旧版本的转换支持。
@@ -302,7 +302,7 @@ spec:
302302
plural: crontabs
303303
# 名称的单数形式,用于在命令行接口和显示时作为其别名
304304
singular: crontab
305-
# kind 通常是驼峰编码(CamelCased)的单数形式,用于资源清单中
305+
# kind 通常是大驼峰编码(PascalCased)的单数形式,用于资源清单中
306306
kind: CronTab
307307
# shortNames 允许你在命令行接口中使用更短的字符串来匹配你的资源
308308
shortNames:
@@ -1244,8 +1244,8 @@ If conversion fails, a webhook should return a `response` stanza containing the
12441244
-->
12451245
如果转换失败,则 Webhook 应该返回包含以下字段的 `response` 节:
12461246

1247-
*`uid`,从发送到 Webhook 的 `request.uid` 复制而来
1248-
*`result`,设置为 `{"status": "Failed"}`
1247+
* `uid`,从发送到 Webhook 的 `request.uid` 复制而来
1248+
* `result`,设置为 `{"status": "Failed"}`
12491249

12501250
{{< warning >}}
12511251
<!--

0 commit comments

Comments
 (0)