Skip to content

Commit b6e1dca

Browse files
committed
[zh-cn]sync kubectl_patch/_index.md
Signed-off-by: xin.li <xin.li@daocloud.io>
1 parent a41c38b commit b6e1dca

File tree

1 file changed

+64
-49
lines changed
  • content/zh-cn/docs/reference/kubectl/generated/kubectl_patch

1 file changed

+64
-49
lines changed

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

Lines changed: 64 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ Filename, directory, or URL to files identifying the resource to update
126126
<td colspan="2">-h, --help</td>
127127
</tr>
128128
<tr>
129-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
129+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
130+
<p>
130131
<!--
131132
help for patch
132133
-->
@@ -138,7 +139,8 @@ patch 操作的帮助命令。
138139
<td colspan="2">-k, --kustomize string</td>
139140
</tr>
140141
<tr>
141-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
142+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
143+
<p>
142144
<!--
143145
Process the kustomization directory. This flag can't be used together with -f or -R.
144146
-->
@@ -150,7 +152,8 @@ Process the kustomization directory. This flag can't be used together with -f or
150152
<td colspan="2">--local</td>
151153
</tr>
152154
<tr>
153-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
155+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
156+
<p>
154157
<!--
155158
If true, patch will operate on the content of the file, not the server-side resource.
156159
-->
@@ -162,7 +165,8 @@ If true, patch will operate on the content of the file, not the server-side reso
162165
<td colspan="2">-o, --output string</td>
163166
</tr>
164167
<tr>
165-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
168+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
169+
<p>
166170
<!--
167171
Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).
168172
-->
@@ -175,7 +179,8 @@ json、yaml、name、go-template、go-template-file、template、templatefile、
175179
<td colspan="2">-p, --patch string</td>
176180
</tr>
177181
<tr>
178-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
182+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
183+
<p>
179184
<!--
180185
The patch to be applied to the resource JSON file.
181186
-->
@@ -187,7 +192,8 @@ The patch to be applied to the resource JSON file.
187192
<td colspan="2">--patch-file string</td>
188193
</tr>
189194
<tr>
190-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
195+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
196+
<p>
191197
<!--
192198
A file containing a patch to be applied to the resource.
193199
-->
@@ -199,7 +205,8 @@ A file containing a patch to be applied to the resource.
199205
<td colspan="2">-R, --recursive</td>
200206
</tr>
201207
<tr>
202-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
208+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
209+
<p>
203210
<!--
204211
Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.
205212
-->
@@ -211,7 +218,8 @@ Process the directory used in -f, --filename recursively. Useful when you want t
211218
<td colspan="2">--show-managed-fields</td>
212219
</tr>
213220
<tr>
214-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
221+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
222+
<p>
215223
<!--
216224
If true, keep the managedFields when printing objects in JSON or YAML format.
217225
-->
@@ -223,7 +231,8 @@ If true, keep the managedFields when printing objects in JSON or YAML format.
223231
<td colspan="2">--subresource string</td>
224232
</tr>
225233
<tr>
226-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
234+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
235+
<p>
227236
<!--
228237
If specified, patch will operate on the subresource of the requested object.
229238
-->
@@ -235,7 +244,8 @@ If specified, patch will operate on the subresource of the requested object.
235244
<td colspan="2">--template string</td>
236245
</tr>
237246
<tr>
238-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
247+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
248+
<p>
239249
<!--
240250
Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].
241251
-->
@@ -248,7 +258,8 @@ Template string or path to template file to use when -o=go-template, -o=go-templ
248258
<td colspan="2">--type string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"strategic"</td>
249259
</tr>
250260
<tr>
251-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
261+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
262+
<p>
252263
<!--
253264
The type of patch being provided; one of [json merge strategic]
254265
-->
@@ -261,7 +272,7 @@ The type of patch being provided; one of [json merge strategic]
261272

262273
## {{% heading "parentoptions" %}}
263274

264-
<table style="width: 100%; table-layout: fixed;">
275+
<table style="width: 100%; table-layout: fixed;">
265276
<colgroup>
266277
<col span="1" style="width: 10px;" />
267278
<col span="1" />
@@ -272,7 +283,8 @@ The type of patch being provided; one of [json merge strategic]
272283
<td colspan="2">--as string</td>
273284
</tr>
274285
<tr>
275-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
286+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
287+
<p>
276288
<!--
277289
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
278290
-->
@@ -284,7 +296,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
284296
<td colspan="2">--as-group strings</td>
285297
</tr>
286298
<tr>
287-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
299+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
300+
<p>
288301
<!--
289302
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
290303
-->
@@ -296,7 +309,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
296309
<td colspan="2">--as-uid string</td>
297310
</tr>
298311
<tr>
299-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
312+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
313+
<p>
300314
<!--
301315
UID to impersonate for the operation.
302316
-->
@@ -308,7 +322,8 @@ UID to impersonate for the operation.
308322
<td colspan="2">--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"$HOME/.kube/cache"</td>
309323
</tr>
310324
<tr>
311-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
325+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
326+
<p>
312327
<!--
313328
Default cache directory
314329
-->
@@ -320,7 +335,8 @@ Default cache directory
320335
<td colspan="2">--certificate-authority string</td>
321336
</tr>
322337
<tr>
323-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
338+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
339+
<p>
324340
<!--
325341
Path to a cert file for the certificate authority
326342
-->
@@ -332,7 +348,8 @@ Path to a cert file for the certificate authority
332348
<td colspan="2">--client-certificate string</td>
333349
</tr>
334350
<tr>
335-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
351+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
352+
<p>
336353
<!--
337354
Path to a client certificate file for TLS
338355
-->
@@ -344,7 +361,8 @@ TLS 客户端证书文件的路径。
344361
<td colspan="2">--client-key string</td>
345362
</tr>
346363
<tr>
347-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
364+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
365+
<p>
348366
<!--
349367
Path to a client key file for TLS
350368
-->
@@ -356,7 +374,8 @@ TLS 客户端密钥文件的路径。
356374
<td colspan="2">--cluster string</td>
357375
</tr>
358376
<tr>
359-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
377+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
378+
<p>
360379
<!--
361380
The name of the kubeconfig cluster to use
362381
-->
@@ -368,43 +387,21 @@ The name of the kubeconfig cluster to use
368387
<td colspan="2">--context string</td>
369388
</tr>
370389
<tr>
371-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
390+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
391+
<p>
372392
<!--
373393
The name of the kubeconfig context to use
374394
-->
375395
要使用的 kubeconfig 上下文的名称。
376396
</p></td>
377397
</tr>
378398

379-
<tr>
380-
<td colspan="2">--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
381-
</tr>
382-
<tr>
383-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
384-
<!--
385-
Indicates the tolerationSeconds of the toleration for notReady:NoExecute that is added by default to every pod that does not already have such a toleration.
386-
-->
387-
设置针对 notReady:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
388-
</p></td>
389-
</tr>
390-
391-
<tr>
392-
<td colspan="2">--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
393-
</tr>
394-
<tr>
395-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
396-
<!--
397-
Indicates the tolerationSeconds of the toleration for unreachable:NoExecute that is added by default to every pod that does not already have such a toleration.
398-
-->
399-
设置针对 unreachable:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
400-
</p></td>
401-
</tr>
402-
403399
<tr>
404400
<td colspan="2">--disable-compression</td>
405401
</tr>
406402
<tr>
407-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
403+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
404+
<p>
408405
<!--
409406
If true, opt-out of response compression for all requests to the server
410407
-->
@@ -416,7 +413,8 @@ If true, opt-out of response compression for all requests to the server
416413
<td colspan="2">--insecure-skip-tls-verify</td>
417414
</tr>
418415
<tr>
419-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
416+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
417+
<p>
420418
<!--
421419
If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
422420
-->
@@ -428,19 +426,36 @@ If true, the server's certificate will not be checked for validity. This will ma
428426
<td colspan="2">--kubeconfig string</td>
429427
</tr>
430428
<tr>
431-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
429+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
430+
<p>
432431
<!--
433432
Path to the kubeconfig file to use for CLI requests.
434433
-->
435434
CLI 请求要使用的 kubeconfig 文件的路径。
436435
</p></td>
437436
</tr>
438437

438+
<tr>
439+
<td colspan="2">--kuberc string</td>
440+
</tr>
441+
<tr>
442+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
443+
<p>
444+
<!--
445+
Path to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.
446+
-->
447+
用于偏好设置的 kuberc 文件的路径。可以通过导出 KUBECTL_KUBERC=false
448+
特性门控或关闭 KUBERC=off 特性门控来禁用此功能。
449+
</p>
450+
</td>
451+
</tr>
452+
439453
<tr>
440454
<td colspan="2">--match-server-version</td>
441455
</tr>
442456
<tr>
443-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
457+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
458+
<p>
444459
<!--
445460
Require server version to match client version
446461
-->

0 commit comments

Comments
 (0)