{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4041","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4041/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4041/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4041/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/4041","id":56323791,"number":4041,"title":"API returns numbers from get that it can't parse when fed into update","user":{"login":"a-robinson","id":7085343,"avatar_url":"https://avatars.githubusercontent.com/u/7085343?v=3","gravatar_id":"","url":"https://api.github.com/users/a-robinson","html_url":"https://github.com/a-robinson","followers_url":"https://api.github.com/users/a-robinson/followers","following_url":"https://api.github.com/users/a-robinson/following{/other_user}","gists_url":"https://api.github.com/users/a-robinson/gists{/gist_id}","starred_url":"https://api.github.com/users/a-robinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-robinson/subscriptions","organizations_url":"https://api.github.com/users/a-robinson/orgs","repos_url":"https://api.github.com/users/a-robinson/repos","events_url":"https://api.github.com/users/a-robinson/events{/privacy}","received_events_url":"https://api.github.com/users/a-robinson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/api/cluster","name":"api/cluster","color":"e1ed21"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/area/usability","name":"area/usability","color":"00cc00"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/kind/bug","name":"kind/bug","color":"ff0000"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/priority/P1","name":"priority/P1","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"vishh","id":7063592,"avatar_url":"https://avatars.githubusercontent.com/u/7063592?v=3","gravatar_id":"","url":"https://api.github.com/users/vishh","html_url":"https://github.com/vishh","followers_url":"https://api.github.com/users/vishh/followers","following_url":"https://api.github.com/users/vishh/following{/other_user}","gists_url":"https://api.github.com/users/vishh/gists{/gist_id}","starred_url":"https://api.github.com/users/vishh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishh/subscriptions","organizations_url":"https://api.github.com/users/vishh/orgs","repos_url":"https://api.github.com/users/vishh/repos","events_url":"https://api.github.com/users/vishh/events{/privacy}","received_events_url":"https://api.github.com/users/vishh/received_events","type":"User","site_admin":false},"milestone":null,"comments":13,"created_at":"2015-02-03T02:10:04Z","updated_at":"2015-02-04T22:33:24Z","closed_at":null,"body":"I spin up a new cluster using GKE at version 0.9.2. Then I run:\r\n$kubectl get minion <minion-id> -o yaml > minion.yaml\r\n\r\nThis returns a yaml file:\r\napiVersion: v1beta1\r\ncreationTimestamp: 2015-02-03T01:16:46Z\r\nhostIP: <ip>\r\nid: <minion-id>\r\nkind: Node\r\nlabels:\r\n    diskSize: \"massive\"\r\nresourceVersion: 12\r\nresources:\r\n  capacity:\r\n    cpu: \"1\"\r\n    memory: 4.0265318e+09\r\nselfLink: /api/v1beta1/minions/<minion-id>\r\nstatus:\r\n  conditions:\r\n  - kind: Ready\r\n    lastTransitionTime: null\r\n    status: Full\r\nuid: 526a4156-ab42-11e4-9817-42010af0258d\r\n\r\nI delete the hostIp and status so that the update request won't get rejected (#3005 should fix that), then run:\r\n$ kubectl update -f minion.yaml\r\nERROR: F0202 18:08:19.054514     767 resource.go:212] error unmarshaling JSON: json: cannot unmarshal number 4.0265318e+09 into Go value of type int\r\n\r\nI'm not sure whether the marshaling or the unmarshaling is what needs to be fixed, but the API shouldn't be returning numbers that it can't parse."},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments/72954721","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/4041#issuecomment-72954721","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4041","id":72954721,"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-02-04T22:33:24Z","updated_at":"2015-02-04T22:33:24Z","body":"Legacy CPU and memory are int and int64, respectively. \r\nResource.Quantity should always produce strings."}}