{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes-incubator/cri-o/issues/652","repository_url":"https://api.github.com/repos/kubernetes-incubator/cri-o","labels_url":"https://api.github.com/repos/kubernetes-incubator/cri-o/issues/652/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes-incubator/cri-o/issues/652/comments","events_url":"https://api.github.com/repos/kubernetes-incubator/cri-o/issues/652/events","html_url":"https://github.com/kubernetes-incubator/cri-o/pull/652","id":242730883,"number":652,"title":"kpod: WIP info subcommand","user":{"login":"vbatts","id":67049,"avatar_url":"https://avatars1.githubusercontent.com/u/67049?v=3","gravatar_id":"","url":"https://api.github.com/users/vbatts","html_url":"https://github.com/vbatts","followers_url":"https://api.github.com/users/vbatts/followers","following_url":"https://api.github.com/users/vbatts/following{/other_user}","gists_url":"https://api.github.com/users/vbatts/gists{/gist_id}","starred_url":"https://api.github.com/users/vbatts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbatts/subscriptions","organizations_url":"https://api.github.com/users/vbatts/orgs","repos_url":"https://api.github.com/users/vbatts/repos","events_url":"https://api.github.com/users/vbatts/events{/privacy}","received_events_url":"https://api.github.com/users/vbatts/received_events","type":"User","site_admin":false},"labels":[{"id":484626496,"url":"https://api.github.com/repos/kubernetes-incubator/cri-o/labels/cncf-cla:%20yes","name":"cncf-cla: yes","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-13T15:00:34Z","updated_at":"2017-07-13T15:07:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kubernetes-incubator/cri-o/pulls/652","html_url":"https://github.com/kubernetes-incubator/cri-o/pull/652","diff_url":"https://github.com/kubernetes-incubator/cri-o/pull/652.diff","patch_url":"https://github.com/kubernetes-incubator/cri-o/pull/652.patch"},"body":"Design: The output of the `info` subcommand ought to be directly\r\nconsumable in a format like JSON.\r\nThe structure being a map of sorts.\r\n\r\nEach subsection of information being an individual cluster under the\r\ntop-level, like platform info, debug, storage, etc.\r\n\r\nEven if there are errors under the top level key, the value will be a\r\nmap with the key of \"error\" and the value as the message of the\r\n`err.Error()`. In this way, the command always returns usable output.\r\n\r\nIdeally there will be a means for anything that can register info to do\r\nso independently from it being in the single info.go, so this approach\r\nis having a typed signature for the function that gives info, but i'm\r\nsure it could be better.\r\n\r\nCurrent iteration of this outputs the following as a limited user:\r\n\r\n```json\r\n{\r\n  \"host\": null,\r\n  \"store\": {\r\n    \"error\": \"mkdir /var/run/containers: permission denied\"\r\n  }\r\n}\r\n```\r\n\r\nSigned-off-by: Vincent Batts <vbatts@hashbangbash.com>"},"comment":{"url":"https://api.github.com/repos/kubernetes-incubator/cri-o/issues/comments/315106637","html_url":"https://github.com/kubernetes-incubator/cri-o/pull/652#issuecomment-315106637","issue_url":"https://api.github.com/repos/kubernetes-incubator/cri-o/issues/652","id":315106637,"user":{"login":"runcom","id":849915,"avatar_url":"https://avatars1.githubusercontent.com/u/849915?v=3","gravatar_id":"","url":"https://api.github.com/users/runcom","html_url":"https://github.com/runcom","followers_url":"https://api.github.com/users/runcom/followers","following_url":"https://api.github.com/users/runcom/following{/other_user}","gists_url":"https://api.github.com/users/runcom/gists{/gist_id}","starred_url":"https://api.github.com/users/runcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runcom/subscriptions","organizations_url":"https://api.github.com/users/runcom/orgs","repos_url":"https://api.github.com/users/runcom/repos","events_url":"https://api.github.com/users/runcom/events{/privacy}","received_events_url":"https://api.github.com/users/runcom/received_events","type":"User","site_admin":false},"created_at":"2017-07-13T15:07:16Z","updated_at":"2017-07-13T15:07:16Z","body":"@vbatts in other kpod PR we have a `--json` flag to have machine parsable output (I'll keep reading the first comment now)"}}
{"actor":{"display_login":"runcom"}}