{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes-sigs/cluster-api/issues/558","repository_url":"https://api.github.com/repos/kubernetes-sigs/cluster-api","labels_url":"https://api.github.com/repos/kubernetes-sigs/cluster-api/issues/558/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes-sigs/cluster-api/issues/558/comments","events_url":"https://api.github.com/repos/kubernetes-sigs/cluster-api/issues/558/events","html_url":"https://github.com/kubernetes-sigs/cluster-api/pull/558","id":373652082,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1NTMwOTA4","number":558,"title":"Add simple machineset delete policy","user":{"login":"anfernee","id":174200,"node_id":"MDQ6VXNlcjE3NDIwMA==","avatar_url":"https://avatars3.githubusercontent.com/u/174200?v=4","gravatar_id":"","url":"https://api.github.com/users/anfernee","html_url":"https://github.com/anfernee","followers_url":"https://api.github.com/users/anfernee/followers","following_url":"https://api.github.com/users/anfernee/following{/other_user}","gists_url":"https://api.github.com/users/anfernee/gists{/gist_id}","starred_url":"https://api.github.com/users/anfernee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anfernee/subscriptions","organizations_url":"https://api.github.com/users/anfernee/orgs","repos_url":"https://api.github.com/users/anfernee/repos","events_url":"https://api.github.com/users/anfernee/events{/privacy}","received_events_url":"https://api.github.com/users/anfernee/received_events","type":"User","site_admin":false},"labels":[{"id":875323571,"node_id":"MDU6TGFiZWw4NzUzMjM1NzE=","url":"https://api.github.com/repos/kubernetes-sigs/cluster-api/labels/cncf-cla:%20yes","name":"cncf-cla: yes","color":"bfe5bf","default":false},{"id":904030780,"node_id":"MDU6TGFiZWw5MDQwMzA3ODA=","url":"https://api.github.com/repos/kubernetes-sigs/cluster-api/labels/size/L","name":"size/L","color":"ee9900","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-10-24T19:57:13Z","updated_at":"2018-10-29T17:48:33Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/kubernetes-sigs/cluster-api/pulls/558","html_url":"https://github.com/kubernetes-sigs/cluster-api/pull/558","diff_url":"https://github.com/kubernetes-sigs/cluster-api/pull/558.diff","patch_url":"https://github.com/kubernetes-sigs/cluster-api/pull/558.patch"},"body":"- The policy simply checks if the machine object status has non empty\r\nerror reason or error message, and prioritize deleting those machines\r\nwith non empty errors.\r\n\r\n**What this PR does / why we need it**: Right now, when machineset manager scales down, it deletes machine randomly. This PR makes it prioritize deleting \"bad\" machines.\r\n\r\n**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:\r\nTowards #75\r\n\r\n**Special notes for your reviewer**:\r\n\r\n_Please confirm that if this PR changes any image versions, then that's the sole change this PR makes._\r\n\r\n**Release note**:\r\n<!--  Write your release note:\r\n1. Enter your extended release note in the below block. If the PR requires additional action from users switching to the new release, include the string \"action required\".\r\n2. If no release note is required, just write \"NONE\".\r\n-->\r\n```release-note\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes-sigs/cluster-api/issues/comments/434010791","html_url":"https://github.com/kubernetes-sigs/cluster-api/pull/558#issuecomment-434010791","issue_url":"https://api.github.com/repos/kubernetes-sigs/cluster-api/issues/558","id":434010791,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDAxMDc5MQ==","user":{"login":"roberthbailey","id":7751204,"node_id":"MDQ6VXNlcjc3NTEyMDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/7751204?v=4","gravatar_id":"","url":"https://api.github.com/users/roberthbailey","html_url":"https://github.com/roberthbailey","followers_url":"https://api.github.com/users/roberthbailey/followers","following_url":"https://api.github.com/users/roberthbailey/following{/other_user}","gists_url":"https://api.github.com/users/roberthbailey/gists{/gist_id}","starred_url":"https://api.github.com/users/roberthbailey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roberthbailey/subscriptions","organizations_url":"https://api.github.com/users/roberthbailey/orgs","repos_url":"https://api.github.com/users/roberthbailey/repos","events_url":"https://api.github.com/users/roberthbailey/events{/privacy}","received_events_url":"https://api.github.com/users/roberthbailey/received_events","type":"User","site_admin":false},"created_at":"2018-10-29T17:48:33Z","updated_at":"2018-10-29T17:48:33Z","author_association":"COLLABORATOR","body":"/assign @ingvagabund"}}
{"actor":{"display_login":"roberthbailey"}}