Skip to content

Commit b888b37

Browse files
committed
[zh-cn]sync kubectl_edit/_index kubectl_explain/_index
Signed-off-by: xin.li <[email protected]>
1 parent 18206ce commit b888b37

File tree

2 files changed

+7
-8
lines changed
  • content/zh-cn/docs/reference/kubectl/generated

2 files changed

+7
-8
lines changed

content/zh-cn/docs/reference/kubectl/generated/kubectl_edit/_index.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,9 @@ If true, keep the managedFields when printing objects in JSON or YAML format.
232232
<td></td><td style="line-height: 130%; word-wrap: break-word;">
233233
<p>
234234
<!--
235-
If specified, edit will operate on the subresource of the requested object. Must be one of [status]. This flag is beta and may change in the future.
235+
If specified, edit will operate on the subresource of the requested object. This flag is beta and may change in the future.
236236
-->
237237
如果指定,edit 将对所请求对象的子资源进行操作。
238-
(目前)只能是 status 子资源。
239238
该标志处于 Beta 状态,将来可能会发生变化。
240239
</p></td>
241240
</tr>
@@ -259,14 +258,14 @@ Template string or path to template file to use when -o=go-template, -o=go-templ
259258
<tr>
260259
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
261260
<!--
262-
Must be one of: strict (or true), warn, ignore (or false).<br/>&quot;true&quot; or &quot;strict&quot; will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not.<br/>&quot;warn&quot; will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as &quot;ignore&quot; otherwise.<br/>&quot;false&quot; or &quot;ignore&quot; will not perform any schema validation, silently dropping any unknown or duplicate fields.
261+
Must be one of: strict (or true), warn, ignore (or false). &quot;true&quot; or &quot;strict&quot; will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not. &quot;warn&quot; will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as &quot;ignore&quot; otherwise. &quot;false&quot; or &quot;ignore&quot; will not perform any schema validation, silently dropping any unknown or duplicate fields.
263262
-->
264-
必须是以下选项之一:strict(或 true)、warn、ignore(或 false)。<br/>
263+
必须是以下选项之一:strict(或 true)、warn、ignore(或 false)。
265264
"true" 或 "strict" 将使用模式定义来验证输入,如果无效,则请求失败。
266265
如果在 API 服务器上启用了 ServerSideFieldValidation,则执行服务器端验证,
267-
但如果未启用,它将回退到可靠性较低的客户端验证。<br/>
266+
但如果未启用,它将回退到可靠性较低的客户端验证。
268267
如果在 API 服务器上启用了服务器端字段验证,"warn" 将警告未知或重复的字段而不阻止请求,
269-
否则操作与 "ignore" 的表现相同。<br/>
268+
否则操作与 "ignore" 的表现相同。
270269
"false" 或 "ignore" 将不会执行任何模式定义检查,而是静默删除所有未知或重复的字段。
271270
</p></td>
272271
</tr>

content/zh-cn/docs/reference/kubectl/generated/kubectl_explain/_index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Use "kubectl api-resources" for a complete list of supported resources.
4040
使用 "kubectl api-resources" 获取受支持的资源的完整列表。
4141

4242
```shell
43-
kubectl explain TYPE [--recursive=FALSE|TRUE] [--api-version=api-version-group] [--output=plaintext|plaintext-openapiv2]
43+
kubectl explain TYPE [--recursive=FALSE|TRUE] [--api-version=api-version-group] [-o|--output=plaintext|plaintext-openapiv2]
4444
```
4545

4646
## {{% heading "examples" %}}
@@ -114,7 +114,7 @@ explain 操作的帮助命令。
114114
</tr>
115115

116116
<tr>
117-
<td colspan="2">--output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"plaintext"</td>
117+
<td colspan="2">-o, --output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"plaintext"</td>
118118
</tr>
119119
<tr>
120120
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>

0 commit comments

Comments
 (0)