Add a custom timeout flag for stop/delete. Also try to be smarter about setting the timeout.

This commit is contained in:
Brendan Burns
2015-05-29 16:16:30 -07:00
parent 3cb30e1e21
commit ab0c9b8e1e
12 changed files with 44 additions and 20 deletions

View File

@@ -49,6 +49,7 @@ $ kubectl delete pods --all
-h, --help=false: help for delete
--ignore-not-found=false: Treat "resource not found" as a successful delete.
-l, --selector="": Selector (label query) to filter on.
--timeout=0: The length of time to wait before giving up on a delete, zero means determine a timeout from the size of the object
```
### Options inherited from parent commands
@@ -83,6 +84,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 18:30:45.437003409 +0000 UTC
###### Auto generated by spf13/cobra at 2015-06-03 18:21:01.053120485 +0000 UTC
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/kubectl_delete.md?pixel)]()