mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 13:14:05 +00:00
Disable --patch for kubectl update
This commit is contained in:
@@ -21,9 +21,6 @@ $ kubectl update -f pod.json
|
||||
|
||||
// Update a pod based on the JSON passed into stdin.
|
||||
$ cat pod.json | kubectl update -f -
|
||||
|
||||
// Update a pod by downloading it, applying the patch, then updating. Requires apiVersion be specified.
|
||||
$ kubectl update pods my-pod --patch='{ "apiVersion": "v1beta1", "desiredState": { "manifest": [{ "cpu": 100 }]}}'
|
||||
```
|
||||
|
||||
### Options
|
||||
@@ -31,7 +28,6 @@ $ kubectl update pods my-pod --patch='{ "apiVersion": "v1beta1", "desiredState":
|
||||
```
|
||||
-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
|
||||
@@ -66,6 +62,6 @@ $ kubectl update pods my-pod --patch='{ "apiVersion": "v1beta1", "desiredState":
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-05-21 10:33:11.179469636 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-05-29 01:11:24.431126385 +0000 UTC
|
||||
|
||||
[]()
|
||||
|
Reference in New Issue
Block a user