{"action":"created","issue":{"url":"https://api.github.com/repos/zendesk/samson/issues/1076","repository_url":"https://api.github.com/repos/zendesk/samson","labels_url":"https://api.github.com/repos/zendesk/samson/issues/1076/labels{/name}","comments_url":"https://api.github.com/repos/zendesk/samson/issues/1076/comments","events_url":"https://api.github.com/repos/zendesk/samson/issues/1076/events","html_url":"https://github.com/zendesk/samson/pull/1076","id":160402735,"number":1076,"title":"Support Kubernetes Job to build Docker image","user":{"login":"hdt91","id":1161962,"avatar_url":"https://avatars.githubusercontent.com/u/1161962?v=3","gravatar_id":"","url":"https://api.github.com/users/hdt91","html_url":"https://github.com/hdt91","followers_url":"https://api.github.com/users/hdt91/followers","following_url":"https://api.github.com/users/hdt91/following{/other_user}","gists_url":"https://api.github.com/users/hdt91/gists{/gist_id}","starred_url":"https://api.github.com/users/hdt91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hdt91/subscriptions","organizations_url":"https://api.github.com/users/hdt91/orgs","repos_url":"https://api.github.com/users/hdt91/repos","events_url":"https://api.github.com/users/hdt91/events{/privacy}","received_events_url":"https://api.github.com/users/hdt91/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-06-15T11:48:10Z","updated_at":"2016-06-30T15:58:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zendesk/samson/pulls/1076","html_url":"https://github.com/zendesk/samson/pull/1076","diff_url":"https://github.com/zendesk/samson/pull/1076.diff","patch_url":"https://github.com/zendesk/samson/pull/1076.patch"},"body":"This PR add the basic support to create a job on a K8s cluster running a predefined image. This image contains a script to clone the specified repository, commit, tag, etc. passed as environment variables, then optionally push the newly built image and reports the result log.\r\n\r\n/cc @jonmoter @grosser \r\n\r\n### Tasks\r\n- Fix CodeClimate and code style violations\r\n- Create the build job image and push to registry\r\n- Test the whole flow on the staging cluster\r\n- Fix any issue after code review ?\r\n\r\n### References\r\n - Jira link: https://zendesk.atlassian.net/browse/PAAS-141\r\n\r\n### Risks\r\n- Level: Low\r\n"},"comment":{"url":"https://api.github.com/repos/zendesk/samson/issues/comments/229704125","html_url":"https://github.com/zendesk/samson/pull/1076#issuecomment-229704125","issue_url":"https://api.github.com/repos/zendesk/samson/issues/1076","id":229704125,"user":{"login":"grosser","id":11367,"avatar_url":"https://avatars.githubusercontent.com/u/11367?v=3","gravatar_id":"","url":"https://api.github.com/users/grosser","html_url":"https://github.com/grosser","followers_url":"https://api.github.com/users/grosser/followers","following_url":"https://api.github.com/users/grosser/following{/other_user}","gists_url":"https://api.github.com/users/grosser/gists{/gist_id}","starred_url":"https://api.github.com/users/grosser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grosser/subscriptions","organizations_url":"https://api.github.com/users/grosser/orgs","repos_url":"https://api.github.com/users/grosser/repos","events_url":"https://api.github.com/users/grosser/events{/privacy}","received_events_url":"https://api.github.com/users/grosser/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T15:58:24Z","updated_at":"2016-06-30T15:58:24Z","body":"that looks reasonable ...\r\n\r\nthings I'd like to change:\r\n - extract as much view logic as possible into new plugin hooks\r\n - ideally reuse existing verifier/config loader\r\n - ideally extract remove_job logic into kubernetes ... but that might be tricky ...\r\n - maybe rename remote_job attribute -> kubernetes_job for clarity"}}
{"actor":{"display_login":"grosser"}}