@@ -27,14 +27,14 @@ kubectl apply set-last-applied -f FILENAME
2727
2828<!--
2929```
30- # Set the last-applied-configuration of a resource to match the contents of a file
31- kubectl apply set-last-applied -f deploy.yaml
32-
33- # Execute set-last-applied against each configuration file in a directory
34- kubectl apply set-last-applied -f path/
35-
36- # Set the last-applied-configuration of a resource to match the contents of a file; will create the annotation if it does not already exist
37- kubectl apply set-last-applied -f deploy.yaml --create-annotation=true
30+ # Set the last-applied-configuration of a resource to match the contents of a file
31+ kubectl apply set-last-applied -f deploy.yaml
32+
33+ # Execute set-last-applied against each configuration file in a directory
34+ kubectl apply set-last-applied -f path/
35+
36+ # Set the last-applied-configuration of a resource to match the contents of a file; will create the annotation if it does not already exist
37+ kubectl apply set-last-applied -f deploy.yaml --create-annotation=true
3838```
3939-->
4040``` shell
@@ -61,7 +61,8 @@ kubectl apply set-last-applied -f deploy.yaml --create-annotation=true
6161<td colspan =" 2 " >--allow-missing-template-keys  ;  ;  ;  ;  ; <!-- Default:--> 默认值:true</td >
6262</tr >
6363<tr >
64- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
64+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
65+ <p >
6566<!--
6667If 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.
6768-->
@@ -87,7 +88,8 @@ Will create 'last-applied-configuration' annotations if current objects doesn't
8788<td colspan =" 2 " >--dry-run string[="unchanged"]  ;  ;  ;  ;  ; <!-- Default:--> 默认值:"none"</td >
8889</tr >
8990<tr >
90- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
91+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
92+ <p >
9193<!--
9294Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.
9395-->
@@ -126,7 +128,8 @@ help for set-last-applied
126128<td colspan =" 2 " >-o, --output string</td >
127129</tr >
128130<tr >
129- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
131+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
132+ <p >
130133<!--
131134Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).
132135-->
@@ -139,7 +142,8 @@ json、yaml、name、go-template、go-template-file、template、templatefile、
139142<td colspan =" 2 " >--show-managed-fields</td >
140143</tr >
141144<tr >
142- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
145+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
146+ <p >
143147<!--
144148If true, keep the managedFields when printing objects in JSON or YAML format.
145149-->
@@ -177,7 +181,8 @@ Template string or path to template file to use when -o=go-template, -o=go-templ
177181<td colspan =" 2 " >--as string</td >
178182</tr >
179183<tr >
180- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
184+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
185+ <p >
181186<!--
182187Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
183188-->
@@ -189,7 +194,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
189194<td colspan =" 2 " >--as-group strings</td >
190195</tr >
191196<tr >
192- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
197+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
198+ <p >
193199<!--
194200Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
195201-->
@@ -201,7 +207,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
201207<td colspan =" 2 " >--as-uid string</td >
202208</tr >
203209<tr >
204- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
210+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
211+ <p >
205212<!--
206213UID to impersonate for the operation.
207214-->
@@ -213,7 +220,8 @@ UID to impersonate for the operation.
213220<td colspan =" 2 " >--cache-dir string  ;  ;  ;  ;  ; <!-- Default: "$HOME/.kube/cache"--> 默认值:"$HOME/.kube/cache"</td >
214221</tr >
215222<tr >
216- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
223+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
224+ <p >
217225<!--
218226Default cache directory
219227-->
@@ -225,7 +233,8 @@ Default cache directory
225233<td colspan =" 2 " >--certificate-authority string</td >
226234</tr >
227235<tr >
228- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
236+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
237+ <p >
229238<!--
230239Path to a cert file for the certificate authority
231240-->
@@ -237,7 +246,8 @@ Path to a cert file for the certificate authority
237246<td colspan =" 2 " >--client-certificate string</td >
238247</tr >
239248<tr >
240- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
249+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
250+ <p >
241251<!--
242252Path to a client certificate file for TLS
243253-->
@@ -249,7 +259,8 @@ TLS 客户端证书文件的路径。
249259<td colspan =" 2 " >--client-key string</td >
250260</tr >
251261<tr >
252- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
262+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
263+ <p >
253264<!--
254265Path to a client key file for TLS
255266-->
@@ -261,7 +272,8 @@ TLS 客户端密钥文件的路径。
261272<td colspan =" 2 " >--cluster string</td >
262273</tr >
263274<tr >
264- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
275+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
276+ <p >
265277<!--
266278The name of the kubeconfig cluster to use
267279-->
@@ -273,43 +285,21 @@ The name of the kubeconfig cluster to use
273285<td colspan =" 2 " >--context string</td >
274286</tr >
275287<tr >
276- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
288+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
289+ <p >
277290<!--
278291The name of the kubeconfig context to use
279292-->
280293要使用的 kubeconfig 上下文的名称。
281294</p ></td >
282295</tr >
283296
284- <tr >
285- <td colspan =" 2 " >--default-not-ready-toleration-seconds int  ;  ;  ;  ;  ; <!-- Default: 300--> 默认值:300</td >
286- </tr >
287- <tr >
288- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
289- <!--
290- 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.
291- -->
292- 设置针对 notReady: NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
293- </p ></td >
294- </tr >
295-
296- <tr >
297- <td colspan =" 2 " >--default-unreachable-toleration-seconds int  ;  ;  ;  ;  ; <!-- Default: 300--> 默认值:300</td >
298- </tr >
299- <tr >
300- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
301- <!--
302- 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.
303- -->
304- 设置针对 unreachable: NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
305- </p ></td >
306- </tr >
307-
308297<tr >
309298<td colspan =" 2 " >--disable-compression</td >
310299</tr >
311300<tr >
312- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
301+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
302+ <p >
313303<!--
314304If true, opt-out of response compression for all requests to the server
315305-->
@@ -321,7 +311,8 @@ If true, opt-out of response compression for all requests to the server
321311<td colspan =" 2 " >--insecure-skip-tls-verify</td >
322312</tr >
323313<tr >
324- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
314+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
315+ <p >
325316<!--
326317If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
327318-->
@@ -333,19 +324,36 @@ If true, the server's certificate will not be checked for validity. This will ma
333324<td colspan =" 2 " >--kubeconfig string</td >
334325</tr >
335326<tr >
336- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
327+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
328+ <p >
337329<!--
338330Path to the kubeconfig file to use for CLI requests.
339331-->
340332CLI 请求要使用的 kubeconfig 文件的路径。
341333</p ></td >
342334</tr >
343335
336+ <tr >
337+ <td colspan =" 2 " >--kuberc string</td >
338+ </tr >
339+ <tr >
340+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
341+ <p >
342+ <!--
343+ 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.
344+ -->
345+ 用于偏好设置的 kuberc 文件的路径。可以通过导出 KUBECTL_KUBERC=false
346+ 特性门控或关闭 KUBERC=off 特性门控来禁用此功能。
347+ </p >
348+ </td >
349+ </tr >
350+
344351<tr >
345352<td colspan =" 2 " >--match-server-version</td >
346353</tr >
347354<tr >
348- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
355+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
356+ <p >
349357<!--
350358Require server version to match client version
351359-->
0 commit comments