Skip to content

Commit 6bba8cb

Browse files
authored
Merge pull request #50048 from my-git9/np-28539
[zh-cn]sync kubectl_replace/_index.md
2 parents e3689ce + 444debe commit 6bba8cb

File tree

1 file changed

+20
-11
lines changed
  • content/zh-cn/docs/reference/kubectl/generated/kubectl_replace

1 file changed

+20
-11
lines changed

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

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -295,18 +295,27 @@ The length of time to wait before giving up on a delete, zero means determine a
295295
<td colspan="2">--validate string[="strict"]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"strict"</td>
296296
</tr>
297297
<tr>
298-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
299-
<!--
300-
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.
301-
-->
302-
必须是以下选项之一:strict(或 true)、warn、ignore(或 false)。<br/>
303-
"true" 或 "strict" 将使用模式定义来验证输入,如果无效,则请求失败。
298+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
299+
<p>
300+
<!--
301+
Must be one of: strict (or true), warn, ignore (or false).
302+
&quot;true&quot; or &quot;strict&quot; will use a schema to validate the input and fail the request if invalid.
303+
It will perform server side validation if ServerSideFieldValidation is enabled on the api-server,
304+
but will fall back to less reliable client-side validation if not.
305+
&quot;warn&quot; will warn about unknown or duplicate fields without blocking the request
306+
if server-side field validation is enabled on the API server, and behave as &quot;ignore&quot; otherwise.
307+
&quot;false&quot; or &quot;ignore&quot; will not perform any schema validation,
308+
silently dropping any unknown or duplicate fields.
309+
-->
310+
必须是以下选项之一:strict(或 true)、warn、ignore(或 false)。
311+
&quot;true&quot;&quot;strict&quot; 将使用模式定义来验证输入,如果无效,则请求失败。
304312
如果在 API 服务器上启用了 ServerSideFieldValidation,则执行服务器端验证,
305-
但如果未启用,它将回退到可靠性较低的客户端验证。<br/>
306-
如果在 API 服务器上启用了服务器端字段验证,"warn" 将警告未知或重复的字段而不阻止请求,
307-
否则操作与 "ignore" 的表现相同。<br/>
308-
"false" 或 "ignore" 将不会执行任何模式定义检查,而是静默删除所有未知或重复的字段。
309-
</p></td>
313+
但如果未启用,它将回退到可靠性较低的客户端验证。
314+
如果在 API 服务器上启用了服务器端字段验证,&quot;warn&quot; 将警告未知或重复的字段而不阻止请求,
315+
否则操作与 &quot;ignore&quot; 的表现相同。
316+
&quot;false&quot;&quot;ignore&quot; 将不会执行任何模式定义检查,而是静默删除所有未知或重复的字段。
317+
</p>
318+
</td>
310319
</tr>
311320

312321
<tr>

0 commit comments

Comments
 (0)