{"action":"created","comment":{"url":"https://api.github.com/repos/zendesk/samson/pulls/comments/41806221","id":41806221,"diff_hunk":"@@ -0,0 +1,146 @@\n+module Kubernetes\n+  class ReleaseDoc < ActiveRecord::Base\n+    self.table_name = 'kubernetes_release_docs'","path":"plugins/kubernetes/app/models/kubernetes/release_doc.rb","position":3,"original_position":3,"commit_id":"7ec65438e84723560b0a642af9881609343e80b7","original_commit_id":"7ec65438e84723560b0a642af9881609343e80b7","user":{"login":"steved","id":13248,"avatar_url":"https://avatars.githubusercontent.com/u/13248?v=3","gravatar_id":"","url":"https://api.github.com/users/steved","html_url":"https://github.com/steved","followers_url":"https://api.github.com/users/steved/followers","following_url":"https://api.github.com/users/steved/following{/other_user}","gists_url":"https://api.github.com/users/steved/gists{/gist_id}","starred_url":"https://api.github.com/users/steved/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steved/subscriptions","organizations_url":"https://api.github.com/users/steved/orgs","repos_url":"https://api.github.com/users/steved/repos","events_url":"https://api.github.com/users/steved/events{/privacy}","received_events_url":"https://api.github.com/users/steved/received_events","type":"User","site_admin":false},"body":"Or defining table_name_prefix: http://apidock.com/rails/ActiveRecord/Base/table_name_prefix/class","created_at":"2015-10-12T22:02:40Z","updated_at":"2015-10-12T22:02:40Z","html_url":"https://github.com/zendesk/samson/pull/524#discussion_r41806221","pull_request_url":"https://api.github.com/repos/zendesk/samson/pulls/524","_links":{"self":{"href":"https://api.github.com/repos/zendesk/samson/pulls/comments/41806221"},"html":{"href":"https://github.com/zendesk/samson/pull/524#discussion_r41806221"},"pull_request":{"href":"https://api.github.com/repos/zendesk/samson/pulls/524"}}},"pull_request":{"url":"https://api.github.com/repos/zendesk/samson/pulls/524","id":40715711,"html_url":"https://github.com/zendesk/samson/pull/524","diff_url":"https://github.com/zendesk/samson/pull/524.diff","patch_url":"https://github.com/zendesk/samson/pull/524.patch","issue_url":"https://api.github.com/repos/zendesk/samson/issues/524","number":524,"state":"open","locked":false,"title":"First pass of deploying to Kubernetes through Samson","user":{"login":"jonmoter","id":1056506,"avatar_url":"https://avatars.githubusercontent.com/u/1056506?v=3","gravatar_id":"","url":"https://api.github.com/users/jonmoter","html_url":"https://github.com/jonmoter","followers_url":"https://api.github.com/users/jonmoter/followers","following_url":"https://api.github.com/users/jonmoter/following{/other_user}","gists_url":"https://api.github.com/users/jonmoter/gists{/gist_id}","starred_url":"https://api.github.com/users/jonmoter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonmoter/subscriptions","organizations_url":"https://api.github.com/users/jonmoter/orgs","repos_url":"https://api.github.com/users/jonmoter/repos","events_url":"https://api.github.com/users/jonmoter/events{/privacy}","received_events_url":"https://api.github.com/users/jonmoter/received_events","type":"User","site_admin":false},"body":"This is a research project for deploying projects using Docker and [Kubernetes](http://kubernetes.io/). It leverages the [kubeclient](https://github.com/abonas/kubeclient) gem to connect to the kubernetes API.\r\n\r\nI'm building this as a plugin, so this be selectively enabled if a user is interested in this functionality.\r\n\r\nSo far, here's the working functionality:\r\n* reading in a Kubernetes config file to get client connection information\r\n* configuring connections to one or more Kubernetes clusters\r\n* assigning DeployGroups to Clusters\r\n* setting up \"Roles\" for a Kubernetes deployment (app server, resque worker, etc.)\r\n* reading in a ReplicationController definition file from the project repo\r\n* deploying a project to Kubernetes based on its ReplicationController definition file(s)\r\n* the beginnings of code to watch the status of the deploy\r\n\r\n# Screenshots\r\n\r\nCluster management:\r\n\r\n![List of Clusters](https://cloud.githubusercontent.com/assets/1056506/10349621/46ac4fde-6cf4-11e5-8d7e-5e2b606ff292.jpg)\r\n\r\nDetails of a cluster connection:\r\n\r\n![Cluster Attributes](https://cloud.githubusercontent.com/assets/1056506/10349606/318366a6-6cf4-11e5-9d89-6d0a58ba6d8d.jpg)\r\n\r\nDefining a \"Role\" in Kubernetes:\r\n\r\n![edit_role_ui](https://cloud.githubusercontent.com/assets/1056506/10349644/6368956a-6cf4-11e5-8d4f-2426eb114966.jpg)\r\n\r\nUI for deploying to one or more clusters:\r\n\r\n![k8s_deployment_ui](https://cloud.githubusercontent.com/assets/1056506/10349663/782f6fb4-6cf4-11e5-8f18-83001673c84b.jpg)\r\n","created_at":"2015-07-23T20:40:12Z","updated_at":"2015-10-12T22:02:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"303056617c8a386834f8aa54018ffdd7b7ca0fba","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zendesk/samson/pulls/524/commits","review_comments_url":"https://api.github.com/repos/zendesk/samson/pulls/524/comments","review_comment_url":"https://api.github.com/repos/zendesk/samson/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zendesk/samson/issues/524/comments","statuses_url":"https://api.github.com/repos/zendesk/samson/statuses/7ec65438e84723560b0a642af9881609343e80b7","head":{"label":"zendesk:jonmoter/kubernetes-research","ref":"jonmoter/kubernetes-research","sha":"7ec65438e84723560b0a642af9881609343e80b7","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":20208662,"name":"samson","full_name":"zendesk/samson","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/samson","description":"Web interface for deployments","fork":false,"url":"https://api.github.com/repos/zendesk/samson","forks_url":"https://api.github.com/repos/zendesk/samson/forks","keys_url":"https://api.github.com/repos/zendesk/samson/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/samson/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/samson/teams","hooks_url":"https://api.github.com/repos/zendesk/samson/hooks","issue_events_url":"https://api.github.com/repos/zendesk/samson/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/samson/events","assignees_url":"https://api.github.com/repos/zendesk/samson/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/samson/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/samson/tags","blobs_url":"https://api.github.com/repos/zendesk/samson/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/samson/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/samson/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/samson/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/samson/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/samson/languages","stargazers_url":"https://api.github.com/repos/zendesk/samson/stargazers","contributors_url":"https://api.github.com/repos/zendesk/samson/contributors","subscribers_url":"https://api.github.com/repos/zendesk/samson/subscribers","subscription_url":"https://api.github.com/repos/zendesk/samson/subscription","commits_url":"https://api.github.com/repos/zendesk/samson/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/samson/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/samson/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/samson/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/samson/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/samson/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/samson/merges","archive_url":"https://api.github.com/repos/zendesk/samson/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/samson/downloads","issues_url":"https://api.github.com/repos/zendesk/samson/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/samson/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/samson/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/samson/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/samson/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/samson/releases{/id}","created_at":"2014-05-27T05:55:57Z","updated_at":"2015-10-11T13:37:17Z","pushed_at":"2015-10-12T20:38:14Z","git_url":"git://github.com/zendesk/samson.git","ssh_url":"git@github.com:zendesk/samson.git","clone_url":"https://github.com/zendesk/samson.git","svn_url":"https://github.com/zendesk/samson","homepage":null,"size":114345,"stargazers_count":505,"watchers_count":505,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":75,"mirror_url":null,"open_issues_count":43,"forks":75,"open_issues":43,"watchers":505,"default_branch":"master"}},"base":{"label":"zendesk:master","ref":"master","sha":"67637cfc44fc722070d04d601fe961e9cd00f069","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":20208662,"name":"samson","full_name":"zendesk/samson","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/samson","description":"Web interface for deployments","fork":false,"url":"https://api.github.com/repos/zendesk/samson","forks_url":"https://api.github.com/repos/zendesk/samson/forks","keys_url":"https://api.github.com/repos/zendesk/samson/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/samson/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/samson/teams","hooks_url":"https://api.github.com/repos/zendesk/samson/hooks","issue_events_url":"https://api.github.com/repos/zendesk/samson/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/samson/events","assignees_url":"https://api.github.com/repos/zendesk/samson/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/samson/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/samson/tags","blobs_url":"https://api.github.com/repos/zendesk/samson/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/samson/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/samson/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/samson/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/samson/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/samson/languages","stargazers_url":"https://api.github.com/repos/zendesk/samson/stargazers","contributors_url":"https://api.github.com/repos/zendesk/samson/contributors","subscribers_url":"https://api.github.com/repos/zendesk/samson/subscribers","subscription_url":"https://api.github.com/repos/zendesk/samson/subscription","commits_url":"https://api.github.com/repos/zendesk/samson/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/samson/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/samson/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/samson/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/samson/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/samson/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/samson/merges","archive_url":"https://api.github.com/repos/zendesk/samson/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/samson/downloads","issues_url":"https://api.github.com/repos/zendesk/samson/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/samson/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/samson/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/samson/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/samson/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/samson/releases{/id}","created_at":"2014-05-27T05:55:57Z","updated_at":"2015-10-11T13:37:17Z","pushed_at":"2015-10-12T20:38:14Z","git_url":"git://github.com/zendesk/samson.git","ssh_url":"git@github.com:zendesk/samson.git","clone_url":"https://github.com/zendesk/samson.git","svn_url":"https://github.com/zendesk/samson","homepage":null,"size":114345,"stargazers_count":505,"watchers_count":505,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":75,"mirror_url":null,"open_issues_count":43,"forks":75,"open_issues":43,"watchers":505,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zendesk/samson/pulls/524"},"html":{"href":"https://github.com/zendesk/samson/pull/524"},"issue":{"href":"https://api.github.com/repos/zendesk/samson/issues/524"},"comments":{"href":"https://api.github.com/repos/zendesk/samson/issues/524/comments"},"review_comments":{"href":"https://api.github.com/repos/zendesk/samson/pulls/524/comments"},"review_comment":{"href":"https://api.github.com/repos/zendesk/samson/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zendesk/samson/pulls/524/commits"},"statuses":{"href":"https://api.github.com/repos/zendesk/samson/statuses/7ec65438e84723560b0a642af9881609343e80b7"}}}}