Add '-o name' to mutations
This commit is contained in:
@@ -28,6 +28,10 @@ JSON and YAML formats are accepted.
|
||||
\fB\-h\fP, \fB\-\-help\fP=false
|
||||
help for create
|
||||
|
||||
.PP
|
||||
\fB\-o\fP, \fB\-\-output\fP=""
|
||||
Output mode. Use "\-o name" for shorter output (resource/name).
|
||||
|
||||
|
||||
.SH OPTIONS INHERITED FROM PARENT COMMANDS
|
||||
.PP
|
||||
|
@@ -53,6 +53,10 @@ will be lost along with the rest of the resource.
|
||||
\fB\-\-ignore\-not\-found\fP=false
|
||||
Treat "resource not found" as a successful delete. Defaults to "true" when \-\-all is specified.
|
||||
|
||||
.PP
|
||||
\fB\-o\fP, \fB\-\-output\fP=""
|
||||
Output mode. Use "\-o name" for shorter output (resource/name).
|
||||
|
||||
.PP
|
||||
\fB\-l\fP, \fB\-\-selector\fP=""
|
||||
Selector (label query) to filter on.
|
||||
|
@@ -24,6 +24,10 @@ JSON and YAML formats are accepted.
|
||||
\fB\-h\fP, \fB\-\-help\fP=false
|
||||
help for patch
|
||||
|
||||
.PP
|
||||
\fB\-o\fP, \fB\-\-output\fP=""
|
||||
Output mode. Use "\-o name" for shorter output (resource/name).
|
||||
|
||||
.PP
|
||||
\fB\-p\fP, \fB\-\-patch\fP=""
|
||||
The patch to be applied to the resource JSON file.
|
||||
|
@@ -40,6 +40,10 @@ JSON and YAML formats are accepted.
|
||||
\fB\-h\fP, \fB\-\-help\fP=false
|
||||
help for replace
|
||||
|
||||
.PP
|
||||
\fB\-o\fP, \fB\-\-output\fP=""
|
||||
Output mode. Use "\-o name" for shorter output (resource/name).
|
||||
|
||||
.PP
|
||||
\fB\-\-timeout\fP=0
|
||||
Only relevant during a force replace. The length of time to wait before giving up on a delete of the old resource, zero means determine a timeout from the size of the object
|
||||
|
@@ -31,6 +31,10 @@ scale is sent to the server.
|
||||
\fB\-h\fP, \fB\-\-help\fP=false
|
||||
help for scale
|
||||
|
||||
.PP
|
||||
\fB\-o\fP, \fB\-\-output\fP=""
|
||||
Output mode. Use "\-o name" for shorter output (resource/name).
|
||||
|
||||
.PP
|
||||
\fB\-\-replicas\fP=\-1
|
||||
The new desired number of replicas. Required.
|
||||
|
@@ -41,6 +41,10 @@ If the resource is scalable it will be scaled to 0 before deletion.
|
||||
\fB\-\-ignore\-not\-found\fP=false
|
||||
Treat "resource not found" as a successful stop.
|
||||
|
||||
.PP
|
||||
\fB\-o\fP, \fB\-\-output\fP=""
|
||||
Output mode. Use "\-o name" for shorter output (resource/name).
|
||||
|
||||
.PP
|
||||
\fB\-l\fP, \fB\-\-selector\fP=""
|
||||
Selector (label query) to filter on.
|
||||
|
@@ -61,6 +61,7 @@ $ cat pod.json | kubectl create -f -
|
||||
```
|
||||
-f, --filename=[]: Filename, directory, or URL to file to use to create the resource
|
||||
-h, --help=false: help for create
|
||||
-o, --output="": Output mode. Use "-o name" for shorter output (resource/name).
|
||||
```
|
||||
|
||||
### Options inherited from parent commands
|
||||
|
@@ -81,6 +81,7 @@ $ kubectl delete pods --all
|
||||
--grace-period=-1: Period of time in seconds given to the resource to terminate gracefully. Ignored if negative.
|
||||
-h, --help=false: help for delete
|
||||
--ignore-not-found=false: Treat "resource not found" as a successful delete. Defaults to "true" when --all is specified.
|
||||
-o, --output="": Output mode. Use "-o name" for shorter output (resource/name).
|
||||
-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
|
||||
```
|
||||
|
@@ -58,6 +58,7 @@ kubectl patch node k8s-node-1 -p '{"spec":{"unschedulable":true}}'
|
||||
|
||||
```
|
||||
-h, --help=false: help for patch
|
||||
-o, --output="": Output mode. Use "-o name" for shorter output (resource/name).
|
||||
-p, --patch="": The patch to be applied to the resource JSON file.
|
||||
```
|
||||
|
||||
|
@@ -67,6 +67,7 @@ kubectl replace --force -f ./pod.json
|
||||
--force=false: Delete and re-create the specified resource
|
||||
--grace-period=-1: Only relevant during a force replace. Period of time in seconds given to the old resource to terminate gracefully. Ignored if negative.
|
||||
-h, --help=false: help for replace
|
||||
-o, --output="": Output mode. Use "-o name" for shorter output (resource/name).
|
||||
--timeout=0: Only relevant during a force replace. The length of time to wait before giving up on a delete of the old resource, zero means determine a timeout from the size of the object
|
||||
```
|
||||
|
||||
|
@@ -64,6 +64,7 @@ $ kubectl scale --current-replicas=2 --replicas=3 replicationcontrollers foo
|
||||
```
|
||||
--current-replicas=-1: Precondition for current size. Requires that the current size of the replication controller match this value in order to scale.
|
||||
-h, --help=false: help for scale
|
||||
-o, --output="": Output mode. Use "-o name" for shorter output (resource/name).
|
||||
--replicas=-1: The new desired number of replicas. Required.
|
||||
--resource-version="": Precondition for resource version. Requires that the current resource version match this value in order to scale.
|
||||
```
|
||||
|
@@ -71,6 +71,7 @@ $ kubectl stop -f path/to/resources
|
||||
--grace-period=-1: Period of time in seconds given to the resource to terminate gracefully. Ignored if negative.
|
||||
-h, --help=false: help for stop
|
||||
--ignore-not-found=false: Treat "resource not found" as a successful stop.
|
||||
-o, --output="": Output mode. Use "-o name" for shorter output (resource/name).
|
||||
-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
|
||||
```
|
||||
|
Reference in New Issue
Block a user