Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kelseyhightower/fa664a92e6f670c9d305b25aba6ff077 to your computer and use it in GitHub Desktop.
Save kelseyhightower/fa664a92e6f670c9d305b25aba6ff077 to your computer and use it in GitHub Desktop.
$ 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