{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/70720717","id":70720717,"diff_hunk":"@@ -1116,3 +1128,189 @@ func BenchmarkGetPodControllerSingleNS(b *testing.B) {\n \t\t}\n \t}\n }\n+\n+// setupManagerWithGCEnabled creates a RC manager with a fakePodControl and with garbageCollectorEnabled set to true\n+func setupManagerWithGCEnabled() (manager *ReplicationManager, fakePodControl *controller.FakePodControl) {\n+\tc := clientset.NewForConfigOrDie(&restclient.Config{Host: \"\", ContentConfig: restclient.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})\n+\tfakePodControl = &controller.FakePodControl{}\n+\tmanager = NewReplicationManagerFromClient(c, controller.NoResyncPeriodFunc, BurstReplicas, 0)\n+\tmanager.garbageCollectorEnabled = true\n+\tmanager.podStoreSynced = alwaysReady\n+\tmanager.podControl = fakePodControl\n+\treturn manager, fakePodControl\n+}\n+\n+func TestDoNotPatchPodWithOtherControlRef(t *testing.T) {\n+\tmanager, fakePodControl := setupManagerWithGCEnabled()\n+\trc := newReplicationController(2)\n+\tmanager.rcStore.Indexer.Add(rc)\n+\tvar trueVar = true\n+\totherControllerReference := api.OwnerReference{UID: util.NewUUID(), APIVersion: \"v1\", Kind: \"ReplicationController\", Name: \"AnotherRC\", Controller: &trueVar}\n+\t// add to podStore a matching Pod controlled by another controller. Expect no patch.\n+\tpod := newPod(\"pod\", rc, api.PodRunning)\n+\tpod.OwnerReferences = []api.OwnerReference{otherControllerReference}\n+\tmanager.podStore.Indexer.Add(pod)\n+\terr := manager.syncReplicationController(getKey(rc, t))\n+\tif err != nil {\n+\t\tt.Fatal(err)\n+\t}\n+\t// because the matching pod already has a controller, so 2 pods should be created.\n+\tvalidateSyncReplication(t, fakePodControl, 2, 0, 0)\n+}\n+\n+func TestPatchPodWithOtherOwnerRef(t *testing.T) {\n+\tmanager, fakePodControl := setupManagerWithGCEnabled()\n+\trc := newReplicationController(2)\n+\tmanager.rcStore.Indexer.Add(rc)\n+\t// add to podStore one more matching pod that doesn't have a controller\n+\t// ref, but has an owner ref pointing to other object. Expect a patch to\n+\t// take control of it.\n+\tunrelatedOwnerReference := api.OwnerReference{UID: util.NewUUID(), APIVersion: \"batch/v1\", Kind: \"Job\", Name: \"Job\"}\n+\tpod := newPod(\"pod\", rc, api.PodRunning)\n+\tpod.OwnerReferences = []api.OwnerReference{unrelatedOwnerReference}\n+\tmanager.podStore.Indexer.Add(pod)\n+\n+\terr := manager.syncReplicationController(getKey(rc, t))\n+\tif err != nil {\n+\t\tt.Fatal(err)\n+\t}\n+\t// 1 patch to take control of pod, and 1 create of new pod.\n+\tvalidateSyncReplication(t, fakePodControl, 1, 0, 1)\n+}\n+\n+func TestPatchPodWithCorrectOwnerRef(t *testing.T) {\n+\tmanager, fakePodControl := setupManagerWithGCEnabled()\n+\trc := newReplicationController(2)\n+\tmanager.rcStore.Indexer.Add(rc)\n+\t// add to podStore a matching pod that has an ownerRef pointing to the rc,\n+\t// but ownerRef.Controller is false. Expect a patch to take control it.\n+\trcOwnerReference := api.OwnerReference{UID: rc.UID, APIVersion: \"v1\", Kind: \"ReplicationController\", Name: rc.Name}\n+\tpod := newPod(\"pod\", rc, api.PodRunning)\n+\tpod.OwnerReferences = []api.OwnerReference{rcOwnerReference}\n+\tmanager.podStore.Indexer.Add(pod)\n+\n+\terr := manager.syncReplicationController(getKey(rc, t))\n+\tif err != nil {\n+\t\tt.Fatal(err)\n+\t}\n+\t// 1 patch to take control of pod, and 1 create of new pod.\n+\tvalidateSyncReplication(t, fakePodControl, 1, 0, 1)\n+}\n+\n+func TestPatchPodFails(t *testing.T) {\n+\tmanager, fakePodControl := setupManagerWithGCEnabled()\n+\trc := newReplicationController(2)\n+\tmanager.rcStore.Indexer.Add(rc)\n+\t// add to podStore two matching pods. Expect two patches to take control\n+\t// them.\n+\tpod1 := newPod(\"pod1\", rc, api.PodRunning)\n+\tpod2 := newPod(\"pod2\", rc, api.PodRunning)\n+\tmanager.podStore.Indexer.Add(pod1)\n+\tmanager.podStore.Indexer.Add(pod2)\n+\t// let both patches fail. The rc manager will assume it fails to take\n+\t// control of the pods and create new ones.\n+\tfakePodControl.Err = fmt.Errorf(\"Fake Error\")\n+\terr := manager.syncReplicationController(getKey(rc, t))\n+\tif err != nil {\n+\t\tt.Fatal(err)\n+\t}\n+\t// 2 patches to take control of pod1 and pod2 (both fail), 2 creates.\n+\tvalidateSyncReplication(t, fakePodControl, 2, 0, 2)\n+}\n+\n+func TestPatchExtraPodsThenDelete(t *testing.T) {\n+\tmanager, fakePodControl := setupManagerWithGCEnabled()\n+\trc := newReplicationController(2)\n+\tmanager.rcStore.Indexer.Add(rc)\n+\t// add to podStore three matching pods. Expect three patches to take control\n+\t// them, and later delete one of them.\n+\tpod1 := newPod(\"pod1\", rc, api.PodRunning)\n+\tpod2 := newPod(\"pod2\", rc, api.PodRunning)\n+\tpod3 := newPod(\"pod3\", rc, api.PodRunning)\n+\tmanager.podStore.Indexer.Add(pod1)","path":"pkg/controller/replication/replication_controller_test.go","position":321,"original_position":321,"commit_id":"7e8ec963cb90ef0e3b1a3fbe8e9e6dfda25c6dd4","original_commit_id":"7e8ec963cb90ef0e3b1a3fbe8e9e6dfda25c6dd4","user":{"login":"lavalamp","id":647318,"avatar_url":"https://avatars.githubusercontent.com/u/647318?v=3","gravatar_id":"","url":"https://api.github.com/users/lavalamp","html_url":"https://github.com/lavalamp","followers_url":"https://api.github.com/users/lavalamp/followers","following_url":"https://api.github.com/users/lavalamp/following{/other_user}","gists_url":"https://api.github.com/users/lavalamp/gists{/gist_id}","starred_url":"https://api.github.com/users/lavalamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavalamp/subscriptions","organizations_url":"https://api.github.com/users/lavalamp/orgs","repos_url":"https://api.github.com/users/lavalamp/repos","events_url":"https://api.github.com/users/lavalamp/events{/privacy}","received_events_url":"https://api.github.com/users/lavalamp/received_events","type":"User","site_admin":false},"body":"optional nit: can create and add in one line if you don't reference the podX variables again.","created_at":"2016-07-13T22:31:54Z","updated_at":"2016-07-13T22:31:54Z","html_url":"https://github.com/kubernetes/kubernetes/pull/27600#discussion_r70720717","pull_request_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/27600","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/70720717"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/27600#discussion_r70720717"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/27600"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/27600","id":74190116,"html_url":"https://github.com/kubernetes/kubernetes/pull/27600","diff_url":"https://github.com/kubernetes/kubernetes/pull/27600.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/27600.patch","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/27600","number":27600,"state":"open","locked":false,"title":"[GarbageCollector] Let the RC manager set/remove ControllerRef","user":{"login":"caesarxuchao","id":2823529,"avatar_url":"https://avatars.githubusercontent.com/u/2823529?v=3","gravatar_id":"","url":"https://api.github.com/users/caesarxuchao","html_url":"https://github.com/caesarxuchao","followers_url":"https://api.github.com/users/caesarxuchao/followers","following_url":"https://api.github.com/users/caesarxuchao/following{/other_user}","gists_url":"https://api.github.com/users/caesarxuchao/gists{/gist_id}","starred_url":"https://api.github.com/users/caesarxuchao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caesarxuchao/subscriptions","organizations_url":"https://api.github.com/users/caesarxuchao/orgs","repos_url":"https://api.github.com/users/caesarxuchao/repos","events_url":"https://api.github.com/users/caesarxuchao/events{/privacy}","received_events_url":"https://api.github.com/users/caesarxuchao/received_events","type":"User","site_admin":false},"body":"What's done:\r\n* RC manager sets Controller Ref when creating new pods\r\n* RC manager sets Controller Ref when adopting pods with matching labels but having no controller\r\n* RC manager clears Controller Ref when pod labels change\r\n* RC manager clears pods' Controller Ref when rc's selector changes\r\n* RC manager stops adoption/creating/deleting pods when rc's DeletionTimestamp is set\r\n* RC manager bumps up ObservedGeneration: The [original code](https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/replication/replication_controller_utils.go#L36) will do this.\r\n* Integration tests:\r\n  * verifies that changing RC's selector or Pod's Labels triggers adoption/abandoning\r\n* e2e tests (separated to #27151):\r\n  * verifies GC deletes the pods created by RC if DeleteOptions.OrphanDependents=false, and orphans the pods if DeleteOptions.OrphanDependents=true.\r\n\r\nTODO:\r\n\r\n- [x] we need to be able to select Pods that have a specific ControllerRef. Then each time we sync the RC, we will iterate through all the Pods that has a controllerRef pointing the RC, event if the labels of the Pod doesn't match the selector of RC anymore. This will prevent a Pod from stuck with a stale controllerRef, which could be caused by the race between abandoner (the goroutine that removes controllerRef) and worker the goroutine that add controllerRef to pods).\r\n- [ ] use controllerRef instead of calling `getPodController`. This might be carried out by the control-plane team.\r\n- [ ] according to the controllerRef proposal (#25256): \"For debugging purposes we want to add an adoptionTime annotation prefixed with kubernetes.io/ which will keep the time of last controller ownership transfer.\" This might be carried out by the control-plane team.\r\n\r\ncc @lavalamp @gmarek","created_at":"2016-06-17T05:19:36Z","updated_at":"2016-07-13T22:31:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e16a02fbb3295a0f1a456a4572cf347d0c263128","assignee":{"login":"lavalamp","id":647318,"avatar_url":"https://avatars.githubusercontent.com/u/647318?v=3","gravatar_id":"","url":"https://api.github.com/users/lavalamp","html_url":"https://github.com/lavalamp","followers_url":"https://api.github.com/users/lavalamp/followers","following_url":"https://api.github.com/users/lavalamp/following{/other_user}","gists_url":"https://api.github.com/users/lavalamp/gists{/gist_id}","starred_url":"https://api.github.com/users/lavalamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavalamp/subscriptions","organizations_url":"https://api.github.com/users/lavalamp/orgs","repos_url":"https://api.github.com/users/lavalamp/repos","events_url":"https://api.github.com/users/lavalamp/events{/privacy}","received_events_url":"https://api.github.com/users/lavalamp/received_events","type":"User","site_admin":false},"assignees":[{"login":"lavalamp","id":647318,"avatar_url":"https://avatars.githubusercontent.com/u/647318?v=3","gravatar_id":"","url":"https://api.github.com/users/lavalamp","html_url":"https://github.com/lavalamp","followers_url":"https://api.github.com/users/lavalamp/followers","following_url":"https://api.github.com/users/lavalamp/following{/other_user}","gists_url":"https://api.github.com/users/lavalamp/gists{/gist_id}","starred_url":"https://api.github.com/users/lavalamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavalamp/subscriptions","organizations_url":"https://api.github.com/users/lavalamp/orgs","repos_url":"https://api.github.com/users/lavalamp/repos","events_url":"https://api.github.com/users/lavalamp/events{/privacy}","received_events_url":"https://api.github.com/users/lavalamp/received_events","type":"User","site_admin":false},{"login":"gmarek","id":1703842,"avatar_url":"https://avatars.githubusercontent.com/u/1703842?v=3","gravatar_id":"","url":"https://api.github.com/users/gmarek","html_url":"https://github.com/gmarek","followers_url":"https://api.github.com/users/gmarek/followers","following_url":"https://api.github.com/users/gmarek/following{/other_user}","gists_url":"https://api.github.com/users/gmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/gmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmarek/subscriptions","organizations_url":"https://api.github.com/users/gmarek/orgs","repos_url":"https://api.github.com/users/gmarek/repos","events_url":"https://api.github.com/users/gmarek/events{/privacy}","received_events_url":"https://api.github.com/users/gmarek/received_events","type":"User","site_admin":false},{"login":"bprashanth","id":10927820,"avatar_url":"https://avatars.githubusercontent.com/u/10927820?v=3","gravatar_id":"","url":"https://api.github.com/users/bprashanth","html_url":"https://github.com/bprashanth","followers_url":"https://api.github.com/users/bprashanth/followers","following_url":"https://api.github.com/users/bprashanth/following{/other_user}","gists_url":"https://api.github.com/users/bprashanth/gists{/gist_id}","starred_url":"https://api.github.com/users/bprashanth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bprashanth/subscriptions","organizations_url":"https://api.github.com/users/bprashanth/orgs","repos_url":"https://api.github.com/users/bprashanth/repos","events_url":"https://api.github.com/users/bprashanth/events{/privacy}","received_events_url":"https://api.github.com/users/bprashanth/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/27600/commits","review_comments_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/27600/comments","review_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/27600/comments","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/7e8ec963cb90ef0e3b1a3fbe8e9e6dfda25c6dd4","head":{"label":"caesarxuchao:rc-gc","ref":"rc-gc","sha":"7e8ec963cb90ef0e3b1a3fbe8e9e6dfda25c6dd4","user":{"login":"caesarxuchao","id":2823529,"avatar_url":"https://avatars.githubusercontent.com/u/2823529?v=3","gravatar_id":"","url":"https://api.github.com/users/caesarxuchao","html_url":"https://github.com/caesarxuchao","followers_url":"https://api.github.com/users/caesarxuchao/followers","following_url":"https://api.github.com/users/caesarxuchao/following{/other_user}","gists_url":"https://api.github.com/users/caesarxuchao/gists{/gist_id}","starred_url":"https://api.github.com/users/caesarxuchao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caesarxuchao/subscriptions","organizations_url":"https://api.github.com/users/caesarxuchao/orgs","repos_url":"https://api.github.com/users/caesarxuchao/repos","events_url":"https://api.github.com/users/caesarxuchao/events{/privacy}","received_events_url":"https://api.github.com/users/caesarxuchao/received_events","type":"User","site_admin":false},"repo":{"id":34024678,"name":"kubernetes","full_name":"caesarxuchao/kubernetes","owner":{"login":"caesarxuchao","id":2823529,"avatar_url":"https://avatars.githubusercontent.com/u/2823529?v=3","gravatar_id":"","url":"https://api.github.com/users/caesarxuchao","html_url":"https://github.com/caesarxuchao","followers_url":"https://api.github.com/users/caesarxuchao/followers","following_url":"https://api.github.com/users/caesarxuchao/following{/other_user}","gists_url":"https://api.github.com/users/caesarxuchao/gists{/gist_id}","starred_url":"https://api.github.com/users/caesarxuchao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caesarxuchao/subscriptions","organizations_url":"https://api.github.com/users/caesarxuchao/orgs","repos_url":"https://api.github.com/users/caesarxuchao/repos","events_url":"https://api.github.com/users/caesarxuchao/events{/privacy}","received_events_url":"https://api.github.com/users/caesarxuchao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/caesarxuchao/kubernetes","description":"Container Cluster Manager from Google","fork":true,"url":"https://api.github.com/repos/caesarxuchao/kubernetes","forks_url":"https://api.github.com/repos/caesarxuchao/kubernetes/forks","keys_url":"https://api.github.com/repos/caesarxuchao/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caesarxuchao/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caesarxuchao/kubernetes/teams","hooks_url":"https://api.github.com/repos/caesarxuchao/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/caesarxuchao/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/caesarxuchao/kubernetes/events","assignees_url":"https://api.github.com/repos/caesarxuchao/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/caesarxuchao/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/caesarxuchao/kubernetes/tags","blobs_url":"https://api.github.com/repos/caesarxuchao/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caesarxuchao/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caesarxuchao/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/caesarxuchao/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caesarxuchao/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/caesarxuchao/kubernetes/languages","stargazers_url":"https://api.github.com/repos/caesarxuchao/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/caesarxuchao/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/caesarxuchao/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/caesarxuchao/kubernetes/subscription","commits_url":"https://api.github.com/repos/caesarxuchao/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/caesarxuchao/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/caesarxuchao/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/caesarxuchao/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/caesarxuchao/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/caesarxuchao/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caesarxuchao/kubernetes/merges","archive_url":"https://api.github.com/repos/caesarxuchao/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caesarxuchao/kubernetes/downloads","issues_url":"https://api.github.com/repos/caesarxuchao/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/caesarxuchao/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/caesarxuchao/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/caesarxuchao/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caesarxuchao/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/caesarxuchao/kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/caesarxuchao/kubernetes/deployments","created_at":"2015-04-15T23:57:43Z","updated_at":"2015-05-07T17:21:06Z","pushed_at":"2016-07-13T17:47:19Z","git_url":"git://github.com/caesarxuchao/kubernetes.git","ssh_url":"git@github.com:caesarxuchao/kubernetes.git","clone_url":"https://github.com/caesarxuchao/kubernetes.git","svn_url":"https://github.com/caesarxuchao/kubernetes","homepage":"http://kubernetes.io","size":281421,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kubernetes:master","ref":"master","sha":"2906a35c1a22838ee0c790100348fb40a6c9d27b","user":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"repo":{"id":20580498,"name":"kubernetes","full_name":"kubernetes/kubernetes","owner":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes/kubernetes","description":"Production-Grade Container Scheduling and Management","fork":false,"url":"https://api.github.com/repos/kubernetes/kubernetes","forks_url":"https://api.github.com/repos/kubernetes/kubernetes/forks","keys_url":"https://api.github.com/repos/kubernetes/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes/kubernetes/teams","hooks_url":"https://api.github.com/repos/kubernetes/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes/kubernetes/events","assignees_url":"https://api.github.com/repos/kubernetes/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes/kubernetes/tags","blobs_url":"https://api.github.com/repos/kubernetes/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes/kubernetes/languages","stargazers_url":"https://api.github.com/repos/kubernetes/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/kubernetes/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/kubernetes/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/kubernetes/kubernetes/subscription","commits_url":"https://api.github.com/repos/kubernetes/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes/kubernetes/merges","archive_url":"https://api.github.com/repos/kubernetes/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes/kubernetes/downloads","issues_url":"https://api.github.com/repos/kubernetes/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes/kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes/kubernetes/deployments","created_at":"2014-06-06T22:56:04Z","updated_at":"2016-07-13T19:42:08Z","pushed_at":"2016-07-13T22:16:13Z","git_url":"git://github.com/kubernetes/kubernetes.git","ssh_url":"git@github.com:kubernetes/kubernetes.git","clone_url":"https://github.com/kubernetes/kubernetes.git","svn_url":"https://github.com/kubernetes/kubernetes","homepage":"http://kubernetes.io","size":491163,"stargazers_count":15500,"watchers_count":15500,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4865,"mirror_url":null,"open_issues_count":3925,"forks":4865,"open_issues":3925,"watchers":15500,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/27600"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/27600"},"issue":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/27600"},"comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/27600/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/27600/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/27600/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/kubernetes/statuses/7e8ec963cb90ef0e3b1a3fbe8e9e6dfda25c6dd4"}}}}
{"actor":{"display_login":"lavalamp"}}