{"action":"created","comment":{"url":"https://api.github.com/repos/roofmonkey/kubernetes/pulls/comments/36530071","id":36530071,"diff_hunk":"@@ -0,0 +1,119 @@\n+/*\n+Copyright 2015 The Kubernetes Authors All rights reserved.\n+\n+Licensed under the Apache License, Version 2.0 (the \"License\");\n+you may not use this file except in compliance with the License.\n+You may obtain a copy of the License at\n+\n+    http://www.apache.org/licenses/LICENSE-2.0\n+\n+Unless required by applicable law or agreed to in writing, software\n+distributed under the License is distributed on an \"AS IS\" BASIS,\n+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+See the License for the specific language governing permissions and\n+limitations under the License.\n+*/\n+\n+// podmaster is a simple utility, it attempts to acquire and maintain a lease-lock from etcd using compare-and-swap.","path":"pkg/controller/lease.go","position":17,"original_position":17,"commit_id":"8e3cbb3455c2538281b6c2bcc54e42582bb55600","original_commit_id":"8e3cbb3455c2538281b6c2bcc54e42582bb55600","user":{"login":"timothysc","id":169553,"avatar_url":"https://avatars.githubusercontent.com/u/169553?v=3","gravatar_id":"","url":"https://api.github.com/users/timothysc","html_url":"https://github.com/timothysc","followers_url":"https://api.github.com/users/timothysc/followers","following_url":"https://api.github.com/users/timothysc/following{/other_user}","gists_url":"https://api.github.com/users/timothysc/gists{/gist_id}","starred_url":"https://api.github.com/users/timothysc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothysc/subscriptions","organizations_url":"https://api.github.com/users/timothysc/orgs","repos_url":"https://api.github.com/users/timothysc/repos","events_url":"https://api.github.com/users/timothysc/events{/privacy}","received_events_url":"https://api.github.com/users/timothysc/received_events","type":"User","site_admin":false},"body":"nix podmaster comments. ","created_at":"2015-08-07T15:27:27Z","updated_at":"2015-08-07T15:27:27Z","html_url":"https://github.com/roofmonkey/kubernetes/pull/1#discussion_r36530071","pull_request_url":"https://api.github.com/repos/roofmonkey/kubernetes/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/roofmonkey/kubernetes/pulls/comments/36530071"},"html":{"href":"https://github.com/roofmonkey/kubernetes/pull/1#discussion_r36530071"},"pull_request":{"href":"https://api.github.com/repos/roofmonkey/kubernetes/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/roofmonkey/kubernetes/pulls/1","id":41833204,"html_url":"https://github.com/roofmonkey/kubernetes/pull/1","diff_url":"https://github.com/roofmonkey/kubernetes/pull/1.diff","patch_url":"https://github.com/roofmonkey/kubernetes/pull/1.patch","issue_url":"https://api.github.com/repos/roofmonkey/kubernetes/issues/1","number":1,"state":"open","locked":false,"title":"Scale ha jay","user":{"login":"jayunit100","id":826111,"avatar_url":"https://avatars.githubusercontent.com/u/826111?v=3","gravatar_id":"","url":"https://api.github.com/users/jayunit100","html_url":"https://github.com/jayunit100","followers_url":"https://api.github.com/users/jayunit100/followers","following_url":"https://api.github.com/users/jayunit100/following{/other_user}","gists_url":"https://api.github.com/users/jayunit100/gists{/gist_id}","starred_url":"https://api.github.com/users/jayunit100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayunit100/subscriptions","organizations_url":"https://api.github.com/users/jayunit100/orgs","repos_url":"https://api.github.com/users/jayunit100/repos","events_url":"https://api.github.com/users/jayunit100/events{/privacy}","received_events_url":"https://api.github.com/users/jayunit100/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-06T20:50:42Z","updated_at":"2015-08-07T15:27:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"06d85a9914a8fb87ba2ceedb49f584d63187990d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/roofmonkey/kubernetes/pulls/1/commits","review_comments_url":"https://api.github.com/repos/roofmonkey/kubernetes/pulls/1/comments","review_comment_url":"https://api.github.com/repos/roofmonkey/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/roofmonkey/kubernetes/issues/1/comments","statuses_url":"https://api.github.com/repos/roofmonkey/kubernetes/statuses/8e3cbb3455c2538281b6c2bcc54e42582bb55600","head":{"label":"roofmonkey:scale-ha-jay","ref":"scale-ha-jay","sha":"8e3cbb3455c2538281b6c2bcc54e42582bb55600","user":{"login":"roofmonkey","id":3969080,"avatar_url":"https://avatars.githubusercontent.com/u/3969080?v=3","gravatar_id":"","url":"https://api.github.com/users/roofmonkey","html_url":"https://github.com/roofmonkey","followers_url":"https://api.github.com/users/roofmonkey/followers","following_url":"https://api.github.com/users/roofmonkey/following{/other_user}","gists_url":"https://api.github.com/users/roofmonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/roofmonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roofmonkey/subscriptions","organizations_url":"https://api.github.com/users/roofmonkey/orgs","repos_url":"https://api.github.com/users/roofmonkey/repos","events_url":"https://api.github.com/users/roofmonkey/events{/privacy}","received_events_url":"https://api.github.com/users/roofmonkey/received_events","type":"Organization","site_admin":false},"repo":{"id":39896000,"name":"kubernetes","full_name":"roofmonkey/kubernetes","owner":{"login":"roofmonkey","id":3969080,"avatar_url":"https://avatars.githubusercontent.com/u/3969080?v=3","gravatar_id":"","url":"https://api.github.com/users/roofmonkey","html_url":"https://github.com/roofmonkey","followers_url":"https://api.github.com/users/roofmonkey/followers","following_url":"https://api.github.com/users/roofmonkey/following{/other_user}","gists_url":"https://api.github.com/users/roofmonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/roofmonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roofmonkey/subscriptions","organizations_url":"https://api.github.com/users/roofmonkey/orgs","repos_url":"https://api.github.com/users/roofmonkey/repos","events_url":"https://api.github.com/users/roofmonkey/events{/privacy}","received_events_url":"https://api.github.com/users/roofmonkey/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/roofmonkey/kubernetes","description":"Container Cluster Manager from Google","fork":true,"url":"https://api.github.com/repos/roofmonkey/kubernetes","forks_url":"https://api.github.com/repos/roofmonkey/kubernetes/forks","keys_url":"https://api.github.com/repos/roofmonkey/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/roofmonkey/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/roofmonkey/kubernetes/teams","hooks_url":"https://api.github.com/repos/roofmonkey/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/roofmonkey/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/roofmonkey/kubernetes/events","assignees_url":"https://api.github.com/repos/roofmonkey/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/roofmonkey/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/roofmonkey/kubernetes/tags","blobs_url":"https://api.github.com/repos/roofmonkey/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/roofmonkey/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/roofmonkey/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/roofmonkey/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/roofmonkey/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/roofmonkey/kubernetes/languages","stargazers_url":"https://api.github.com/repos/roofmonkey/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/roofmonkey/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/roofmonkey/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/roofmonkey/kubernetes/subscription","commits_url":"https://api.github.com/repos/roofmonkey/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/roofmonkey/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/roofmonkey/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/roofmonkey/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/roofmonkey/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/roofmonkey/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/roofmonkey/kubernetes/merges","archive_url":"https://api.github.com/repos/roofmonkey/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/roofmonkey/kubernetes/downloads","issues_url":"https://api.github.com/repos/roofmonkey/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/roofmonkey/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/roofmonkey/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/roofmonkey/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/roofmonkey/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/roofmonkey/kubernetes/releases{/id}","created_at":"2015-07-29T13:52:02Z","updated_at":"2015-07-29T13:52:09Z","pushed_at":"2015-08-07T14:57:38Z","git_url":"git://github.com/roofmonkey/kubernetes.git","ssh_url":"git@github.com:roofmonkey/kubernetes.git","clone_url":"https://github.com/roofmonkey/kubernetes.git","svn_url":"https://github.com/roofmonkey/kubernetes","homepage":"http://kubernetes.io","size":97906,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"roofmonkey:master","ref":"master","sha":"9f495e7f69453409dc303619cf1702234e1942df","user":{"login":"roofmonkey","id":3969080,"avatar_url":"https://avatars.githubusercontent.com/u/3969080?v=3","gravatar_id":"","url":"https://api.github.com/users/roofmonkey","html_url":"https://github.com/roofmonkey","followers_url":"https://api.github.com/users/roofmonkey/followers","following_url":"https://api.github.com/users/roofmonkey/following{/other_user}","gists_url":"https://api.github.com/users/roofmonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/roofmonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roofmonkey/subscriptions","organizations_url":"https://api.github.com/users/roofmonkey/orgs","repos_url":"https://api.github.com/users/roofmonkey/repos","events_url":"https://api.github.com/users/roofmonkey/events{/privacy}","received_events_url":"https://api.github.com/users/roofmonkey/received_events","type":"Organization","site_admin":false},"repo":{"id":39896000,"name":"kubernetes","full_name":"roofmonkey/kubernetes","owner":{"login":"roofmonkey","id":3969080,"avatar_url":"https://avatars.githubusercontent.com/u/3969080?v=3","gravatar_id":"","url":"https://api.github.com/users/roofmonkey","html_url":"https://github.com/roofmonkey","followers_url":"https://api.github.com/users/roofmonkey/followers","following_url":"https://api.github.com/users/roofmonkey/following{/other_user}","gists_url":"https://api.github.com/users/roofmonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/roofmonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roofmonkey/subscriptions","organizations_url":"https://api.github.com/users/roofmonkey/orgs","repos_url":"https://api.github.com/users/roofmonkey/repos","events_url":"https://api.github.com/users/roofmonkey/events{/privacy}","received_events_url":"https://api.github.com/users/roofmonkey/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/roofmonkey/kubernetes","description":"Container Cluster Manager from Google","fork":true,"url":"https://api.github.com/repos/roofmonkey/kubernetes","forks_url":"https://api.github.com/repos/roofmonkey/kubernetes/forks","keys_url":"https://api.github.com/repos/roofmonkey/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/roofmonkey/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/roofmonkey/kubernetes/teams","hooks_url":"https://api.github.com/repos/roofmonkey/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/roofmonkey/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/roofmonkey/kubernetes/events","assignees_url":"https://api.github.com/repos/roofmonkey/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/roofmonkey/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/roofmonkey/kubernetes/tags","blobs_url":"https://api.github.com/repos/roofmonkey/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/roofmonkey/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/roofmonkey/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/roofmonkey/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/roofmonkey/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/roofmonkey/kubernetes/languages","stargazers_url":"https://api.github.com/repos/roofmonkey/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/roofmonkey/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/roofmonkey/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/roofmonkey/kubernetes/subscription","commits_url":"https://api.github.com/repos/roofmonkey/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/roofmonkey/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/roofmonkey/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/roofmonkey/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/roofmonkey/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/roofmonkey/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/roofmonkey/kubernetes/merges","archive_url":"https://api.github.com/repos/roofmonkey/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/roofmonkey/kubernetes/downloads","issues_url":"https://api.github.com/repos/roofmonkey/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/roofmonkey/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/roofmonkey/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/roofmonkey/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/roofmonkey/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/roofmonkey/kubernetes/releases{/id}","created_at":"2015-07-29T13:52:02Z","updated_at":"2015-07-29T13:52:09Z","pushed_at":"2015-08-07T14:57:38Z","git_url":"git://github.com/roofmonkey/kubernetes.git","ssh_url":"git@github.com:roofmonkey/kubernetes.git","clone_url":"https://github.com/roofmonkey/kubernetes.git","svn_url":"https://github.com/roofmonkey/kubernetes","homepage":"http://kubernetes.io","size":97906,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/roofmonkey/kubernetes/pulls/1"},"html":{"href":"https://github.com/roofmonkey/kubernetes/pull/1"},"issue":{"href":"https://api.github.com/repos/roofmonkey/kubernetes/issues/1"},"comments":{"href":"https://api.github.com/repos/roofmonkey/kubernetes/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/roofmonkey/kubernetes/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/roofmonkey/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/roofmonkey/kubernetes/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/roofmonkey/kubernetes/statuses/8e3cbb3455c2538281b6c2bcc54e42582bb55600"}}}}