mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-05 19:21:37 +00:00
Delete fails on notfound errors.
If deleting multiple resources, command will continue on error and report not found resources at the end.
This commit is contained in:
@@ -42,12 +42,13 @@ $ kubectl delete pods --all
|
||||
### Options
|
||||
|
||||
```
|
||||
--all=false: [-all] to select all the specified resources
|
||||
--all=false: [-all] to select all the specified resources.
|
||||
--cascade=true: If true, cascade the delete resources managed by this resource (e.g. Pods created by a ReplicationController). Default true.
|
||||
-f, --filename=[]: Filename, directory, or URL to a file containing the resource to delete
|
||||
-f, --filename=[]: Filename, directory, or URL to a file containing the resource to delete.
|
||||
--grace-period=-1: Period of time in seconds given to the resource to terminate gracefully. Ignored if negative.
|
||||
-h, --help=false: help for delete
|
||||
-l, --selector="": Selector (label query) to filter on
|
||||
--ignore-not-found=false: Treat "resource not found" as a successful delete.
|
||||
-l, --selector="": Selector (label query) to filter on.
|
||||
```
|
||||
|
||||
### Options inherited from parent commands
|
||||
@@ -82,6 +83,6 @@ $ kubectl delete pods --all
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-05-21 10:33:11.18056941 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-05-21 18:30:45.437003409 +0000 UTC
|
||||
|
||||
[]()
|
||||
|
@@ -33,11 +33,12 @@ $ kubectl stop -f path/to/resources
|
||||
### Options
|
||||
|
||||
```
|
||||
--all=false: [-all] to select all the specified resources
|
||||
-f, --filename=[]: Filename, directory, or URL to file of resource(s) to be stopped
|
||||
--all=false: [-all] to select all the specified resources.
|
||||
-f, --filename=[]: Filename, directory, or URL to file of resource(s) to be stopped.
|
||||
--grace-period=-1: Period of time in seconds given to the resource to terminate gracefully. Ignored if negative.
|
||||
-h, --help=false: help for stop
|
||||
-l, --selector="": Selector (label query) to filter on
|
||||
--ignore-not-found=false: Treat "resource not found" as a successful stop.
|
||||
-l, --selector="": Selector (label query) to filter on.
|
||||
```
|
||||
|
||||
### Options inherited from parent commands
|
||||
@@ -72,6 +73,6 @@ $ kubectl stop -f path/to/resources
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-05-21 10:33:11.190996891 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-05-21 18:30:45.439945376 +0000 UTC
|
||||
|
||||
[]()
|
||||
|
@@ -31,7 +31,7 @@ will be lost along with the rest of the resource.
|
||||
.SH OPTIONS
|
||||
.PP
|
||||
\fB\-\-all\fP=false
|
||||
[\-all] to select all the specified resources
|
||||
[\-all] to select all the specified resources.
|
||||
|
||||
.PP
|
||||
\fB\-\-cascade\fP=true
|
||||
@@ -39,7 +39,7 @@ will be lost along with the rest of the resource.
|
||||
|
||||
.PP
|
||||
\fB\-f\fP, \fB\-\-filename\fP=[]
|
||||
Filename, directory, or URL to a file containing the resource to delete
|
||||
Filename, directory, or URL to a file containing the resource to delete.
|
||||
|
||||
.PP
|
||||
\fB\-\-grace\-period\fP=\-1
|
||||
@@ -49,9 +49,13 @@ will be lost along with the rest of the resource.
|
||||
\fB\-h\fP, \fB\-\-help\fP=false
|
||||
help for delete
|
||||
|
||||
.PP
|
||||
\fB\-\-ignore\-not\-found\fP=false
|
||||
Treat "resource not found" as a successful delete.
|
||||
|
||||
.PP
|
||||
\fB\-l\fP, \fB\-\-selector\fP=""
|
||||
Selector (label query) to filter on
|
||||
Selector (label query) to filter on.
|
||||
|
||||
|
||||
.SH OPTIONS INHERITED FROM PARENT COMMANDS
|
||||
|
@@ -23,11 +23,11 @@ If the resource is scalable it will be scaled to 0 before deletion.
|
||||
.SH OPTIONS
|
||||
.PP
|
||||
\fB\-\-all\fP=false
|
||||
[\-all] to select all the specified resources
|
||||
[\-all] to select all the specified resources.
|
||||
|
||||
.PP
|
||||
\fB\-f\fP, \fB\-\-filename\fP=[]
|
||||
Filename, directory, or URL to file of resource(s) to be stopped
|
||||
Filename, directory, or URL to file of resource(s) to be stopped.
|
||||
|
||||
.PP
|
||||
\fB\-\-grace\-period\fP=\-1
|
||||
@@ -37,9 +37,13 @@ If the resource is scalable it will be scaled to 0 before deletion.
|
||||
\fB\-h\fP, \fB\-\-help\fP=false
|
||||
help for stop
|
||||
|
||||
.PP
|
||||
\fB\-\-ignore\-not\-found\fP=false
|
||||
Treat "resource not found" as a successful stop.
|
||||
|
||||
.PP
|
||||
\fB\-l\fP, \fB\-\-selector\fP=""
|
||||
Selector (label query) to filter on
|
||||
Selector (label query) to filter on.
|
||||
|
||||
|
||||
.SH OPTIONS INHERITED FROM PARENT COMMANDS
|
||||
|
Reference in New Issue
Block a user