File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
content/zh/docs/reference/kubectl Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,25 @@ For a stable output in a script:
43
43
* 完全限定版本。例如 ` jobs.v1.batch/myjob ` 。这将确保 kubectl 不会使用其默认版本,该版本会随着时间的推移而更改。
44
44
* 不要依赖上下文、首选项或其他隐式状态。
45
45
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
+
46
65
<!--
47
66
## Best Practices
48
67
-->
You can’t perform that action at this time.
0 commit comments