Merge pull request #523 from thuey/patch-1
Fixes "Error: unknown shorthand flag: 't' in -type=json"
This commit is contained in:
commit
c622ec399e
|
@ -32,7 +32,7 @@ kubectl patch -f node.json -p '{"spec":{"unschedulable":true}}'
|
||||||
kubectl patch pod valid-pod -p '{"spec":{"containers":[{"name":"kubernetes-serve-hostname","image":"new image"}]}}'
|
kubectl patch pod valid-pod -p '{"spec":{"containers":[{"name":"kubernetes-serve-hostname","image":"new image"}]}}'
|
||||||
|
|
||||||
# Update a container's image using a json patch with positional arrays
|
# Update a container's image using a json patch with positional arrays
|
||||||
kubectl patch pod valid-pod -type='json' -p='[{"op": "replace", "path": "/spec/containers/0/image", "value":"new image"}]'
|
kubectl patch pod valid-pod --type='json' -p='[{"op": "replace", "path": "/spec/containers/0/image", "value":"new image"}]'
|
||||||
```
|
```
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
Loading…
Reference in New Issue