Skip to content

Commit fe6e34a

Browse files
authored
Merge pull request #52254 from my-git9/npa-22475
[zh-cn]sync kubectl_edit/_index.md
2 parents 3b11f8a + c29f49f commit fe6e34a

File tree

1 file changed

+61
-47
lines changed
  • content/zh-cn/docs/reference/kubectl/generated/kubectl_edit

1 file changed

+61
-47
lines changed

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

Lines changed: 61 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ kubectl edit deployment mydeployment --subresource='status'
102102
<td colspan="2">--allow-missing-template-keys&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:true</td>
103103
</tr>
104104
<tr>
105-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
105+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
106+
<p>
106107
<!--
107108
If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.
108109
-->
@@ -154,7 +155,8 @@ help for edit
154155
<td colspan="2">-k, --kustomize string</td>
155156
</tr>
156157
<tr>
157-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
158+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
159+
<p>
158160
<!--
159161
Process the kustomization directory. This flag can't be used together with -f or -R.
160162
-->
@@ -166,7 +168,8 @@ Process the kustomization directory. This flag can't be used together with -f or
166168
<td colspan="2">-o, --output string</td>
167169
</tr>
168170
<tr>
169-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
171+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
172+
<p>
170173
<!--
171174
Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).
172175
-->
@@ -192,7 +195,8 @@ Output the patch if the resource is edited.
192195
<td colspan="2">-R, --recursive</td>
193196
</tr>
194197
<tr>
195-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
198+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
199+
<p>
196200
<!--
197201
Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.
198202
-->
@@ -204,7 +208,8 @@ Process the directory used in -f, --filename recursively. Useful when you want t
204208
<td colspan="2">--save-config</td>
205209
</tr>
206210
<tr>
207-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
211+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
212+
<p>
208213
<!--
209214
If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.
210215
-->
@@ -217,7 +222,8 @@ If true, the configuration of current object will be saved in its annotation. Ot
217222
<td colspan="2">--show-managed-fields</td>
218223
</tr>
219224
<tr>
220-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
225+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
226+
<p>
221227
<!--
222228
If true, keep the managedFields when printing objects in JSON or YAML format.
223229
-->
@@ -242,7 +248,8 @@ If specified, edit will operate on the subresource of the requested object.
242248
<td colspan="2">--template string</td>
243249
</tr>
244250
<tr>
245-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
251+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
252+
<p>
246253
<!--
247254
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].
248255
-->
@@ -255,7 +262,8 @@ Template string or path to template file to use when -o=go-template, -o=go-templ
255262
<td colspan="2">--validate string[="strict"]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"strict"</td>
256263
</tr>
257264
<tr>
258-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
265+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
266+
<p>
259267
<!--
260268
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.
261269
-->
@@ -273,7 +281,8 @@ Must be one of: strict (or true), warn, ignore (or false). &quot;true&quot; or &
273281
<td colspan="2">--windows-line-endings</td>
274282
</tr>
275283
<tr>
276-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
284+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
285+
<p>
277286
<!--
278287
Only relevant if --edit=true. Defaults to the line ending native to your platform.
279288
-->
@@ -297,7 +306,8 @@ Only relevant if --edit=true. Defaults to the line ending native to your platfor
297306
<td colspan="2">--as string</td>
298307
</tr>
299308
<tr>
300-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
309+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
310+
<p>
301311
<!--
302312
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
303313
-->
@@ -309,7 +319,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
309319
<td colspan="2">--as-group strings</td>
310320
</tr>
311321
<tr>
312-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
322+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
323+
<p>
313324
<!--
314325
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
315326
-->
@@ -321,7 +332,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
321332
<td colspan="2">--as-uid string</td>
322333
</tr>
323334
<tr>
324-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
335+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
336+
<p>
325337
<!--
326338
UID to impersonate for the operation.
327339
-->
@@ -333,7 +345,8 @@ UID to impersonate for the operation.
333345
<td colspan="2">--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"$HOME/.kube/cache"</td>
334346
</tr>
335347
<tr>
336-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
348+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
349+
<p>
337350
<!--
338351
Default cache directory
339352
-->
@@ -345,7 +358,8 @@ Default cache directory
345358
<td colspan="2">--certificate-authority string</td>
346359
</tr>
347360
<tr>
348-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
361+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
362+
<p>
349363
<!--
350364
Path to a cert file for the certificate authority
351365
-->
@@ -357,7 +371,8 @@ Path to a cert file for the certificate authority
357371
<td colspan="2">--client-certificate string</td>
358372
</tr>
359373
<tr>
360-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
374+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
375+
<p>
361376
<!--
362377
Path to a client certificate file for TLS
363378
-->
@@ -369,7 +384,8 @@ TLS 客户端证书文件的路径。
369384
<td colspan="2">--client-key string</td>
370385
</tr>
371386
<tr>
372-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
387+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
388+
<p>
373389
<!--
374390
Path to a client key file for TLS
375391
-->
@@ -381,7 +397,8 @@ TLS 客户端密钥文件的路径。
381397
<td colspan="2">--cluster string</td>
382398
</tr>
383399
<tr>
384-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
400+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
401+
<p>
385402
<!--
386403
The name of the kubeconfig cluster to use
387404
-->
@@ -393,43 +410,21 @@ The name of the kubeconfig cluster to use
393410
<td colspan="2">--context string</td>
394411
</tr>
395412
<tr>
396-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
413+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
414+
<p>
397415
<!--
398416
The name of the kubeconfig context to use
399417
-->
400418
要使用的 kubeconfig 上下文的名称。
401419
</p></td>
402420
</tr>
403421

404-
<tr>
405-
<td colspan="2">--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
406-
</tr>
407-
<tr>
408-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
409-
<!--
410-
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.
411-
-->
412-
设置针对 notReady:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
413-
</p></td>
414-
</tr>
415-
416-
<tr>
417-
<td colspan="2">--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
418-
</tr>
419-
<tr>
420-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
421-
<!--
422-
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.
423-
-->
424-
设置针对 unreachable:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
425-
</p></td>
426-
</tr>
427-
428422
<tr>
429423
<td colspan="2">--disable-compression</td>
430424
</tr>
431425
<tr>
432-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
426+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
427+
<p>
433428
<!--
434429
If true, opt-out of response compression for all requests to the server
435430
-->
@@ -441,7 +436,8 @@ If true, opt-out of response compression for all requests to the server
441436
<td colspan="2">--insecure-skip-tls-verify</td>
442437
</tr>
443438
<tr>
444-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
439+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
440+
<p>
445441
<!--
446442
If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
447443
-->
@@ -453,19 +449,36 @@ If true, the server's certificate will not be checked for validity. This will ma
453449
<td colspan="2">--kubeconfig string</td>
454450
</tr>
455451
<tr>
456-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
452+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
453+
<p>
457454
<!--
458455
Path to the kubeconfig file to use for CLI requests.
459456
-->
460457
CLI 请求要使用的 kubeconfig 文件的路径。
461458
</p></td>
462459
</tr>
463460

461+
<tr>
462+
<td colspan="2">--kuberc string</td>
463+
</tr>
464+
<tr>
465+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
466+
<p>
467+
<!--
468+
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.
469+
-->
470+
用于偏好设置的 kuberc 文件的路径。可以通过导出 KUBECTL_KUBERC=false
471+
特性门控或关闭 KUBERC=off 特性来禁用此功能。
472+
</p>
473+
</td>
474+
</tr>
475+
464476
<tr>
465477
<td colspan="2">--match-server-version</td>
466478
</tr>
467479
<tr>
468-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
480+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
481+
<p>
469482
<!--
470483
Require server version to match client version
471484
-->
@@ -477,7 +490,8 @@ Require server version to match client version
477490
<td colspan="2">-n, --namespace string</td>
478491
</tr>
479492
<tr>
480-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
493+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
494+
<p>
481495
<!--
482496
If present, the namespace scope for this CLI request
483497
-->

0 commit comments

Comments
 (0)