[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
parent
54ff49c2d6
commit
f69311fc48
|
@ -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
|
||||
-->
|
||||
|
|
Loading…
Reference in New Issue