{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/11072","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/11072/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/11072/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/11072/events","html_url":"https://github.com/openshift/origin/issues/11072","id":178886391,"number":11072,"title":"Cleanup policy for builds","user":{"login":"kargakis","id":3900799,"avatar_url":"https://avatars.githubusercontent.com/u/3900799?v=3","gravatar_id":"","url":"https://api.github.com/users/kargakis","html_url":"https://github.com/kargakis","followers_url":"https://api.github.com/users/kargakis/followers","following_url":"https://api.github.com/users/kargakis/following{/other_user}","gists_url":"https://api.github.com/users/kargakis/gists{/gist_id}","starred_url":"https://api.github.com/users/kargakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kargakis/subscriptions","organizations_url":"https://api.github.com/users/kargakis/orgs","repos_url":"https://api.github.com/users/kargakis/repos","events_url":"https://api.github.com/users/kargakis/events{/privacy}","received_events_url":"https://api.github.com/users/kargakis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/component/build","name":"component/build","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-23T14:05:20Z","updated_at":"2016-09-23T14:44:34Z","closed_at":null,"body":"I want to limit the number of old builds kept in my project and since pruning is a manual task run by an  administrator (or even automated via a scheduled job that I have no idea when it's executed) I want my old builds to be automatically cleaned up similar to how revisionHistoryLimit works for deployment configs.\r\n\r\n@bparees I think there is a subtle difference between this and pruning since regural users won't be able to run prune.\r\n\r\ncc: @mfojtik @smarterclayton "},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/249212017","html_url":"https://github.com/openshift/origin/issues/11072#issuecomment-249212017","issue_url":"https://api.github.com/repos/openshift/origin/issues/11072","id":249212017,"user":{"login":"kargakis","id":3900799,"avatar_url":"https://avatars.githubusercontent.com/u/3900799?v=3","gravatar_id":"","url":"https://api.github.com/users/kargakis","html_url":"https://github.com/kargakis","followers_url":"https://api.github.com/users/kargakis/followers","following_url":"https://api.github.com/users/kargakis/following{/other_user}","gists_url":"https://api.github.com/users/kargakis/gists{/gist_id}","starred_url":"https://api.github.com/users/kargakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kargakis/subscriptions","organizations_url":"https://api.github.com/users/kargakis/orgs","repos_url":"https://api.github.com/users/kargakis/repos","events_url":"https://api.github.com/users/kargakis/events{/privacy}","received_events_url":"https://api.github.com/users/kargakis/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T14:44:34Z","updated_at":"2016-09-23T14:44:34Z","body":"```\r\n$ oadm prune builds\r\nError from server: User \"developer\" cannot list all buildconfigs in the cluster\r\n```\r\n\r\nI guess we could fix prune to work on separate namespaces but then users would either need to manually prune or take an extra step and setup a scheduled job for automating it. What I was shooting for is the more fine-grained cleanup policy we have for deployments ie. you can pick up which build configs you want pruned. With a sensible default users will never really need to care about pruning."}}
{"actor":{"display_login":"kargakis"}}