[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 <tengqm@outlook.com>

* Update conventions.md

* Update conventions.md

* Update conventions.md

Co-authored-by: Qiming Teng <tengqm@outlook.com>
pull/33490/head
zyy19981018 2022-05-05 18:50:20 +08:00 committed by GitHub
parent 54ff49c2d6
commit f69311fc48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

View File

@ -43,6 +43,25 @@ For a stable output in a script:
* 完全限定版本。例如 `jobs.v1.batch/myjob`。这将确保 kubectl 不会使用其默认版本,该版本会随着时间的推移而更改。
* 不要依赖上下文、首选项或其他隐式状态。
<!--
## Subresources
-->
## 子资源 {#subresources}
<!--
* You can use the `--subresource` alpha flag for kubectl commands like `get`, `patch`,
`edit` and `replace` to fetch and update subresources for all resources that
support them. Currently, only the `status` and `scale` subresources are supported.
* The API contract against a subresource is identical to a full resource. While updating the
`status` subresource to a new value, keep in mind that the subresource could be potentially
reconciled by a controller to a different value.
-->
* 你可以将 `--subresource` alpha 标志用于 kubectl 命令,例如 `get`、`patch`、`edit` 和 `replace`
来获取和更新所有支持子资源的资源的子资源。 目前,仅支持 `status``scale` 子资源。
* 针对子资源的 API 协定与完整资源相同。在更新`status` 子资源为一个新值时,请记住,
子资源可能是潜在的由控制器调和为不同的值。
<!--
## Best Practices
-->