{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4311","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4311/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4311/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4311/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/4311","id":57303489,"number":4311,"title":"kubectl label command crashes when a resource has no labels","user":{"login":"kazegusuri","id":2457753,"avatar_url":"https://avatars.githubusercontent.com/u/2457753?v=3","gravatar_id":"","url":"https://api.github.com/users/kazegusuri","html_url":"https://github.com/kazegusuri","followers_url":"https://api.github.com/users/kazegusuri/followers","following_url":"https://api.github.com/users/kazegusuri/following{/other_user}","gists_url":"https://api.github.com/users/kazegusuri/gists{/gist_id}","starred_url":"https://api.github.com/users/kazegusuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kazegusuri/subscriptions","organizations_url":"https://api.github.com/users/kazegusuri/orgs","repos_url":"https://api.github.com/users/kazegusuri/repos","events_url":"https://api.github.com/users/kazegusuri/events{/privacy}","received_events_url":"https://api.github.com/users/kazegusuri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-11T11:19:57Z","updated_at":"2015-02-11T16:08:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/4311","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/4311","diff_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/4311.diff","patch_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/4311.patch"},"body":"```\r\n$ cat redis-master.json\r\n{\r\n  \"id\": \"redis-master\",\r\n  \"kind\": \"Pod\",\r\n  \"apiVersion\": \"v1beta1\",\r\n  \"desiredState\": {\r\n    \"manifest\": {\r\n      \"version\": \"v1beta1\",\r\n      \"id\": \"redis-master\",\r\n      \"containers\": [{\r\n        \"name\": \"master\",\r\n        \"image\": \"dockerfile/redis\",\r\n        \"cpu\": 100,\r\n        \"ports\": [{\r\n          \"containerPort\": 6379,\r\n          \"hostPort\": 6379\r\n        }]\r\n      }]\r\n    }\r\n  }\r\n}\r\n$ kubectl create -f redis-master.json\r\n$ kubectl get po\r\nPOD                 IP                  CONTAINER(S)        IMAGE(S)            HOST                        LABELS              STATUS\r\nredis-master       10.244.23.2         master              dockerfile/redis    172.17.8.103/172.17.8.103   <none>              Running\r\n\r\n$ kubectl label po redis-master name=bar \r\n# crash\r\n```"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments/73907839","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/4311#issuecomment-73907839","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4311","id":73907839,"user":{"login":"satnam6502","id":6164339,"avatar_url":"https://avatars.githubusercontent.com/u/6164339?v=3","gravatar_id":"","url":"https://api.github.com/users/satnam6502","html_url":"https://github.com/satnam6502","followers_url":"https://api.github.com/users/satnam6502/followers","following_url":"https://api.github.com/users/satnam6502/following{/other_user}","gists_url":"https://api.github.com/users/satnam6502/gists{/gist_id}","starred_url":"https://api.github.com/users/satnam6502/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satnam6502/subscriptions","organizations_url":"https://api.github.com/users/satnam6502/orgs","repos_url":"https://api.github.com/users/satnam6502/repos","events_url":"https://api.github.com/users/satnam6502/events{/privacy}","received_events_url":"https://api.github.com/users/satnam6502/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T16:08:45Z","updated_at":"2015-02-11T16:08:45Z","body":"I wonder if `api.ObjectMetaFor` should make sure it returns an empty map rather than nil rather than requiring this check for its callers?"}}