Merge pull request #49806 from my-git9/np-6372
[zh-cn]sync kubectl_apply/* kubectl_taintpull/49855/head
commit
d9100c2163
|
@ -348,6 +348,21 @@ If true, keep the managedFields when printing objects in JSON or YAML format.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td colspan="2">--subresource string</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td></td><td style="line-height: 130%; word-wrap: break-word;">
|
||||||
|
<p>
|
||||||
|
<!--
|
||||||
|
If specified, apply will operate on the subresource of the requested object. Only allowed when using --server-side. This flag is beta and may change in the future.
|
||||||
|
-->
|
||||||
|
如果指定此参数,apply 将对请求对象的子资源进行操作。
|
||||||
|
仅在使用 --server-side 时允许指定此参数。此标志为 Beta 级别,将来可能会发生变化。
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">--template string</td>
|
<td colspan="2">--template string</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -378,18 +393,27 @@ The length of time to wait before giving up on a delete, zero means determine a
|
||||||
<td colspan="2">--validate string[="strict"] <!--Default:-->默认值:"strict"</td>
|
<td colspan="2">--validate string[="strict"] <!--Default:-->默认值:"strict"</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
|
<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" 将使用模式定义来验证输入,如果无效,则请求失败。
|
"true" 或 "strict" 将使用模式定义来验证输入,如果无效,则请求失败。
|
||||||
如果在 API 服务器上启用了 ServerSideFieldValidation,则执行服务器端验证,
|
如果在 API 服务器上启用了 ServerSideFieldValidation,则执行服务器端验证,
|
||||||
但如果未启用,它将回退到可靠性较低的客户端验证。<br/>
|
但如果未启用此参数,API 服务器将回退到可靠性较低的客户端验证。
|
||||||
如果在 API 服务器上启用了服务器端字段验证,"warn" 将警告未知或重复的字段而不阻止请求,
|
如果在 API 服务器上启用了服务器端字段验证,"warn" 将警告未知或重复的字段而不阻止请求,
|
||||||
否则操作与 "ignore" 的表现相同。<br/>
|
否则操作与 "ignore" 的表现相同。
|
||||||
"false" 或 "ignore" 将不会执行任何模式定义检查,而是静默删除所有未知或重复的字段。
|
"false" 或 "ignore" 将不会执行任何模式定义检查,而是静默删除所有未知或重复的字段。
|
||||||
</p></td>
|
</p>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -42,11 +42,11 @@ kubectl apply edit-last-applied (RESOURCE/NAME | -f FILENAME)
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
```
|
```
|
||||||
# Edit the last-applied-configuration annotations by type/name in YAML
|
# Edit the last-applied-configuration annotations by type/name in YAML
|
||||||
kubectl apply edit-last-applied deployment/nginx
|
kubectl apply edit-last-applied deployment/nginx
|
||||||
|
|
||||||
# Edit the last-applied-configuration annotations by file in JSON
|
# Edit the last-applied-configuration annotations by file in JSON
|
||||||
kubectl apply edit-last-applied -f deploy.yaml -o json
|
kubectl apply edit-last-applied -f deploy.yaml -o json
|
||||||
```
|
```
|
||||||
-->
|
-->
|
||||||
```shell
|
```shell
|
||||||
|
@ -184,18 +184,27 @@ Template string or path to template file to use when -o=go-template, -o=go-templ
|
||||||
<td colspan="2">--validate string[="strict"] <!--Default:-->默认值:"strict"</td>
|
<td colspan="2">--validate string[="strict"] <!--Default:-->默认值:"strict"</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
|
<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" 将使用模式定义来验证输入,如果无效,则请求失败。
|
"true" 或 "strict" 将使用模式定义来验证输入,如果无效,则请求失败。
|
||||||
如果在 API 服务器上启用了 ServerSideFieldValidation,则执行服务器端验证,
|
如果在 API 服务器上启用了 ServerSideFieldValidation,则执行服务器端验证,
|
||||||
但如果未启用,它将回退到可靠性较低的客户端验证。<br/>
|
但如果未启用此参数,它将回退到可靠性较低的客户端验证。
|
||||||
如果在 API 服务器上启用了服务器端字段验证,"warn" 将警告未知或重复的字段而不阻止请求,
|
如果在 API 服务器上启用了服务器端字段验证,"warn" 将警告未知或重复的字段而不阻止请求,
|
||||||
否则操作与 "ignore" 的表现相同。<br/>
|
否则操作与 "ignore" 的表现相同。
|
||||||
"false" 或 "ignore" 将不会执行任何模式定义检查,而是静默删除所有未知或重复的字段。
|
"false" 或 "ignore" 将不会执行任何模式定义检查,而是静默删除所有未知或重复的字段。
|
||||||
</p></td>
|
</p>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -207,7 +216,8 @@ Must be one of: strict (or true), warn, ignore (or false).<br/>"true"
|
||||||
Only relevant if --edit=true. Defaults to the line ending native to your platform.
|
Only relevant if --edit=true. Defaults to the line ending native to your platform.
|
||||||
-->
|
-->
|
||||||
仅在 --edit=true 时起作用。默认为你所用平台本地的行结尾格式。
|
仅在 --edit=true 时起作用。默认为你所用平台本地的行结尾格式。
|
||||||
</p></td>
|
</p>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
@ -228,15 +228,22 @@ Template string or path to template file to use when -o=go-template, -o=go-templ
|
||||||
<td></td><td style="line-height: 130%; word-wrap: break-word;">
|
<td></td><td style="line-height: 130%; word-wrap: break-word;">
|
||||||
<p>
|
<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" 将使用模式定义来验证输入,如果无效,则请求失败。
|
"true" 或 "strict" 将使用模式定义来验证输入,如果无效,则请求失败。
|
||||||
如果在 API 服务器上启用了 ServerSideFieldValidation,则执行服务器端验证,
|
如果在 API 服务器上启用了 ServerSideFieldValidation,则执行服务器端验证,
|
||||||
但如果未启用,它将回退到可靠性较低的客户端验证。<br/>
|
但如果未启用此参数,它将回退到可靠性较低的客户端验证。
|
||||||
如果在 API 服务器上启用了服务器端字段验证,"warn" 将警告未知或重复的字段而不阻止请求,
|
如果在 API 服务器上启用了服务器端字段验证,"warn" 将警告未知或重复的字段而不阻止请求,
|
||||||
否则操作与 "ignore" 的表现相同。<br/>
|
否则操作与 "ignore" 的表现相同。
|
||||||
"false" 或 "ignore" 将不会执行任何模式定义检查,而是静默删除所有未知或重复的字段。
|
"false" 或 "ignore" 将不会执行任何模式定义检查,而是静默删除所有未知或重复的字段。
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue