Skip to content

Commit f69311f

Browse files
zyy19981018tengqm
andauthored
[zh]Update content/zh/docs/reference/kubectl/conventions.md (#33483)
* [zh]Update content/zh/docs/reference/kubectl/conventions.md * Update content/zh/docs/reference/kubectl/conventions.md Co-authored-by: Qiming Teng <[email protected]> * Update conventions.md * Update conventions.md * Update conventions.md Co-authored-by: Qiming Teng <[email protected]>
1 parent 54ff49c commit f69311f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

content/zh/docs/reference/kubectl/conventions.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,25 @@ For a stable output in a script:
4343
* 完全限定版本。例如 `jobs.v1.batch/myjob`。这将确保 kubectl 不会使用其默认版本,该版本会随着时间的推移而更改。
4444
* 不要依赖上下文、首选项或其他隐式状态。
4545

46+
<!--
47+
## Subresources
48+
-->
49+
## 子资源 {#subresources}
50+
51+
<!--
52+
* You can use the `--subresource` alpha flag for kubectl commands like `get`, `patch`,
53+
`edit` and `replace` to fetch and update subresources for all resources that
54+
support them. Currently, only the `status` and `scale` subresources are supported.
55+
* The API contract against a subresource is identical to a full resource. While updating the
56+
`status` subresource to a new value, keep in mind that the subresource could be potentially
57+
reconciled by a controller to a different value.
58+
-->
59+
60+
* 你可以将 `--subresource` alpha 标志用于 kubectl 命令,例如 `get``patch``edit``replace`
61+
来获取和更新所有支持子资源的资源的子资源。 目前,仅支持 `status``scale` 子资源。
62+
* 针对子资源的 API 协定与完整资源相同。在更新`status` 子资源为一个新值时,请记住,
63+
子资源可能是潜在的由控制器调和为不同的值。
64+
4665
<!--
4766
## Best Practices
4867
-->

0 commit comments

Comments
 (0)