{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/7564","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/7564/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/7564/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/7564/events","html_url":"https://github.com/openshift/origin/issues/7564","id":135799409,"number":7564,"title":"Be nice to admins trying to prune images as `system:admin`","user":{"login":"miminar","id":1478803,"avatar_url":"https://avatars.githubusercontent.com/u/1478803?v=3","gravatar_id":"","url":"https://api.github.com/users/miminar","html_url":"https://github.com/miminar","followers_url":"https://api.github.com/users/miminar/followers","following_url":"https://api.github.com/users/miminar/following{/other_user}","gists_url":"https://api.github.com/users/miminar/gists{/gist_id}","starred_url":"https://api.github.com/users/miminar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miminar/subscriptions","organizations_url":"https://api.github.com/users/miminar/orgs","repos_url":"https://api.github.com/users/miminar/repos","events_url":"https://api.github.com/users/miminar/events{/privacy}","received_events_url":"https://api.github.com/users/miminar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/area/usability","name":"area/usability","color":"006b75"},{"url":"https://api.github.com/repos/openshift/origin/labels/component/auth","name":"component/auth","color":"0052cc"},{"url":"https://api.github.com/repos/openshift/origin/labels/component/cli","name":"component/cli","color":"0052cc"},{"url":"https://api.github.com/repos/openshift/origin/labels/component/imageregistry","name":"component/imageregistry","color":"0052cc"},{"url":"https://api.github.com/repos/openshift/origin/labels/priority/P3","name":"priority/P3","color":"fad8c7"}],"state":"open","locked":false,"assignee":{"login":"miminar","id":1478803,"avatar_url":"https://avatars.githubusercontent.com/u/1478803?v=3","gravatar_id":"","url":"https://api.github.com/users/miminar","html_url":"https://github.com/miminar","followers_url":"https://api.github.com/users/miminar/followers","following_url":"https://api.github.com/users/miminar/following{/other_user}","gists_url":"https://api.github.com/users/miminar/gists{/gist_id}","starred_url":"https://api.github.com/users/miminar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miminar/subscriptions","organizations_url":"https://api.github.com/users/miminar/orgs","repos_url":"https://api.github.com/users/miminar/repos","events_url":"https://api.github.com/users/miminar/events{/privacy}","received_events_url":"https://api.github.com/users/miminar/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-02-23T17:08:03Z","updated_at":"2016-02-24T17:59:50Z","closed_at":null,"body":"Running\r\n    \r\n    oadm prune images \r\n\r\nas a `system:admin` results in error:\r\n\r\n    F0223 18:01:32.532893   21211 helpers.go:107] error: You must use a client config with a token\r\n\r\nwhich is not much helpful and we have been asked several times\r\n\r\n> how do I create a client config with a token?\r\n\r\nLet's make the error more helpful with an advice, how to create such a client config. Or let's enhance help message and point the admin there."},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/188383620","html_url":"https://github.com/openshift/origin/issues/7564#issuecomment-188383620","issue_url":"https://api.github.com/repos/openshift/origin/issues/7564","id":188383620,"user":{"login":"deads2k","id":8225098,"avatar_url":"https://avatars.githubusercontent.com/u/8225098?v=3","gravatar_id":"","url":"https://api.github.com/users/deads2k","html_url":"https://github.com/deads2k","followers_url":"https://api.github.com/users/deads2k/followers","following_url":"https://api.github.com/users/deads2k/following{/other_user}","gists_url":"https://api.github.com/users/deads2k/gists{/gist_id}","starred_url":"https://api.github.com/users/deads2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deads2k/subscriptions","organizations_url":"https://api.github.com/users/deads2k/orgs","repos_url":"https://api.github.com/users/deads2k/repos","events_url":"https://api.github.com/users/deads2k/events{/privacy}","received_events_url":"https://api.github.com/users/deads2k/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T17:59:50Z","updated_at":"2016-02-24T17:59:50Z","body":"Once we get https://github.com/openshift/origin/pull/6941, it will be possible to easily get an SA token and I'm not adverse to creating such a service account in our infra namespace.  @liggitt arguments against?\r\n\r\nAlso, weren't we going to bundle the logic into a controller?  Are we waiting for scheduled jobs instead?"}}