Skip to content

Commit 98327c6

Browse files
authored
Merge pull request #33504 from JarHMJ/202205052021
[zh]Update content/zh/docs/reference/using-api/_index.md
2 parents 8da26a0 + e231350 commit 98327c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

content/zh/docs/reference/using-api/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ part is omitted, it is treated as if `=true` is specified. For example:
191191
192192
- to disable `batch/v1`, set `--runtime-config=batch/v1=false`
193193
- to enable `batch/v2alpha1`, set `--runtime-config=batch/v2alpha1`
194+
- to enable a specific version of an API, such as `storage.k8s.io/v1beta1/csistoragecapacities`, set `--runtime-config=storage.k8s.io/v1beta1/csistoragecapacities`
194195
-->
195196
## 启用或禁用 API 组 {#enabling-or-disabling}
196197
资源和 API 组是在默认情况下被启用的。
@@ -200,6 +201,8 @@ part is omitted, it is treated as if `=true` is specified. For example:
200201
例如:
201202
- 禁用 `batch/v1`, 对应参数设置 `--runtime-config=batch/v1=false`
202203
- 启用 `batch/v2alpha1`, 对应参数设置 `--runtime-config=batch/v2alpha1`
204+
- 要启用特定版本的 API,如 `storage.k8s.io/v1beta1/csistoragecapacities`,可以设置
205+
`--runtime-config=storage.k8s.io/v1beta1/csistoragecapacities`
203206

204207
<!--
205208
When you enable or disable groups or resources, you need to restart the API

0 commit comments

Comments
 (0)