[zh-cn]sync kubectl_edit/_index kubectl_explain/_index
Signed-off-by: xin.li <xin.li@daocloud.io>pull/49497/head
parent
18206ce8fc
commit
b888b37c1c
|
@ -232,10 +232,9 @@ If true, keep the managedFields when printing objects in JSON or YAML format.
|
|||
<td></td><td style="line-height: 130%; word-wrap: break-word;">
|
||||
<p>
|
||||
<!--
|
||||
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.
|
||||
If specified, edit will operate on the subresource of the requested object. This flag is beta and may change in the future.
|
||||
-->
|
||||
如果指定,edit 将对所请求对象的子资源进行操作。
|
||||
(目前)只能是 status 子资源。
|
||||
该标志处于 Beta 状态,将来可能会发生变化。
|
||||
</p></td>
|
||||
</tr>
|
||||
|
@ -259,14 +258,14 @@ Template string or path to template file to use when -o=go-template, -o=go-templ
|
|||
<tr>
|
||||
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
|
||||
<!--
|
||||
Must be one of: strict (or true), warn, ignore (or false).<br/>"true" or "strict" 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/>"warn" 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 "ignore" otherwise.<br/>"false" or "ignore" will not perform any schema validation, silently dropping any unknown or duplicate fields.
|
||||
Must be one of: strict (or true), warn, ignore (or false). "true" or "strict" 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. "warn" 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 "ignore" otherwise. "false" or "ignore" will not perform any schema validation, silently dropping any unknown or duplicate fields.
|
||||
-->
|
||||
必须是以下选项之一:strict(或 true)、warn、ignore(或 false)。<br/>
|
||||
必须是以下选项之一:strict(或 true)、warn、ignore(或 false)。
|
||||
"true" 或 "strict" 将使用模式定义来验证输入,如果无效,则请求失败。
|
||||
如果在 API 服务器上启用了 ServerSideFieldValidation,则执行服务器端验证,
|
||||
但如果未启用,它将回退到可靠性较低的客户端验证。<br/>
|
||||
但如果未启用,它将回退到可靠性较低的客户端验证。
|
||||
如果在 API 服务器上启用了服务器端字段验证,"warn" 将警告未知或重复的字段而不阻止请求,
|
||||
否则操作与 "ignore" 的表现相同。<br/>
|
||||
否则操作与 "ignore" 的表现相同。
|
||||
"false" 或 "ignore" 将不会执行任何模式定义检查,而是静默删除所有未知或重复的字段。
|
||||
</p></td>
|
||||
</tr>
|
||||
|
|
|
@ -40,7 +40,7 @@ Use "kubectl api-resources" for a complete list of supported resources.
|
|||
使用 "kubectl api-resources" 获取受支持的资源的完整列表。
|
||||
|
||||
```shell
|
||||
kubectl explain TYPE [--recursive=FALSE|TRUE] [--api-version=api-version-group] [--output=plaintext|plaintext-openapiv2]
|
||||
kubectl explain TYPE [--recursive=FALSE|TRUE] [--api-version=api-version-group] [-o|--output=plaintext|plaintext-openapiv2]
|
||||
```
|
||||
|
||||
## {{% heading "examples" %}}
|
||||
|
@ -114,7 +114,7 @@ explain 操作的帮助命令。
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">--output string <!--Default:-->默认值:"plaintext"</td>
|
||||
<td colspan="2">-o, --output string <!--Default:-->默认值:"plaintext"</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
|
||||
|
|
Loading…
Reference in New Issue