reenable patch serverside using strategic-merge-patch
This commit is contained in:
@@ -21,6 +21,9 @@ $ kubectl update -f pod.json
|
||||
|
||||
// Update a pod based on the JSON passed into stdin.
|
||||
$ cat pod.json | kubectl update -f -
|
||||
|
||||
// Partially update a node using strategic merge patch
|
||||
kubectl --api-version=v1 update node k8s-node-1 --patch='{"spec":{"unschedulable":true}}'
|
||||
```
|
||||
|
||||
### Options
|
||||
@@ -28,6 +31,7 @@ $ cat pod.json | kubectl update -f -
|
||||
```
|
||||
-f, --filename=[]: Filename, directory, or URL to file to use to update the resource.
|
||||
-h, --help=false: help for update
|
||||
--patch="": A JSON document to override the existing resource. The resource is downloaded, patched with the JSON, then updated.
|
||||
```
|
||||
|
||||
### Options inherited from parent commands
|
||||
@@ -62,6 +66,6 @@ $ cat pod.json | kubectl update -f -
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-05-29 01:11:24.431126385 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-06-18 19:03:00.935576604 +0000 UTC
|
||||
|
||||
[]()
|
||||
|
@@ -28,6 +28,10 @@ JSON and YAML formats are accepted.
|
||||
\fB\-h\fP, \fB\-\-help\fP=false
|
||||
help for update
|
||||
|
||||
.PP
|
||||
\fB\-\-patch\fP=""
|
||||
A JSON document to override the existing resource. The resource is downloaded, patched with the JSON, then updated.
|
||||
|
||||
|
||||
.SH OPTIONS INHERITED FROM PARENT COMMANDS
|
||||
.PP
|
||||
@@ -138,6 +142,9 @@ $ kubectl update \-f pod.json
|
||||
// Update a pod based on the JSON passed into stdin.
|
||||
$ cat pod.json | kubectl update \-f \-
|
||||
|
||||
// Partially update a node using strategic merge patch
|
||||
kubectl \-\-api\-version=v1 update node k8s\-node\-1 \-\-patch='\{"spec":\{"unschedulable":true\}\}'
|
||||
|
||||
.fi
|
||||
.RE
|
||||
|
||||
|
Reference in New Issue
Block a user