{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/5774","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/5774/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/5774/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/5774/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/5774","id":63607791,"number":5774,"title":"CPU can not be update","user":{"login":"hurf","id":4618015,"avatar_url":"https://avatars.githubusercontent.com/u/4618015?v=3","gravatar_id":"","url":"https://api.github.com/users/hurf","html_url":"https://github.com/hurf","followers_url":"https://api.github.com/users/hurf/followers","following_url":"https://api.github.com/users/hurf/following{/other_user}","gists_url":"https://api.github.com/users/hurf/gists{/gist_id}","starred_url":"https://api.github.com/users/hurf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hurf/subscriptions","organizations_url":"https://api.github.com/users/hurf/orgs","repos_url":"https://api.github.com/users/hurf/repos","events_url":"https://api.github.com/users/hurf/events{/privacy}","received_events_url":"https://api.github.com/users/hurf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/area/documentation","name":"area/documentation","color":"5319e7"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/kind/support","name":"kind/support","color":"eb6420"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/priority/support","name":"priority/support","color":"c7def8"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/team/master","name":"team/master","color":"d2b48c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-23T02:48:04Z","updated_at":"2015-03-23T07:17:52Z","closed_at":null,"body":"Following the doc [https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/kubectl-update.md](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/kubectl-update.md), \r\n\r\nI tried the command :\r\n\r\n\t$ kubectl update pods my-pod --patch='{ \"apiVersion\": \"v1beta1\", \"desiredState\": { \"manifest\": [{ \"cpu\": 100 }]}}'\r\n\r\nIt says:\r\n\r\n\tsome fields are immutable\r\n\r\nIs it a bug or the doc provided a bad example?"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments/84854577","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/5774#issuecomment-84854577","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/5774","id":84854577,"user":{"login":"bgrant0607","id":7725777,"avatar_url":"https://avatars.githubusercontent.com/u/7725777?v=3","gravatar_id":"","url":"https://api.github.com/users/bgrant0607","html_url":"https://github.com/bgrant0607","followers_url":"https://api.github.com/users/bgrant0607/followers","following_url":"https://api.github.com/users/bgrant0607/following{/other_user}","gists_url":"https://api.github.com/users/bgrant0607/gists{/gist_id}","starred_url":"https://api.github.com/users/bgrant0607/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgrant0607/subscriptions","organizations_url":"https://api.github.com/users/bgrant0607/orgs","repos_url":"https://api.github.com/users/bgrant0607/repos","events_url":"https://api.github.com/users/bgrant0607/events{/privacy}","received_events_url":"https://api.github.com/users/bgrant0607/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T07:17:52Z","updated_at":"2015-03-23T07:17:52Z","body":"We should allow resources to be updated.\r\n\r\nIt looks like they are included in container hash, so the container should be deleted and re-created with the new values.\r\n\r\n@dchen1107 @vishh Can you think of anything else we need to do to permit resource updates other than just relax validation?\r\n\r\nhttps://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/api/validation/validation.go#L697"}}