Created
May 4, 2016 20:05
-
-
Save kelseyhightower/fa664a92e6f670c9d305b25aba6ff077 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -H "Content-Type: application/merge-patch+json" -X PATCH http://127.0.0.1:8080/api/v1/namespaces/default/pods/nginx -d @pod-patch.json | |
{ | |
"kind": "Status", | |
"apiVersion": "v1", | |
"metadata": {}, | |
"status": "Failure", | |
"message": "Pod \"nginx\" is invalid: spec: Forbidden: pod updates may not change fields other than `containers[*].image` or `spec.activeDeadlineSeconds`", | |
"reason": "Invalid", | |
"details": { | |
"name": "nginx", | |
"kind": "Pod", | |
"causes": [ | |
{ | |
"reason": "FieldValueForbidden", | |
"message": "Forbidden: pod updates may not change fields other than `containers[*].image` or `spec.activeDeadlineSeconds`", | |
"field": "spec" | |
} | |
] | |
}, | |
"code": 422 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment