{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/66863706","id":66863706,"diff_hunk":"@@ -0,0 +1,167 @@\n+/*\n+Copyright 2016 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+package deployment\n+\n+import (\n+\t\"fmt\"\n+\t\"sort\"\n+\t\"strconv\"\n+\n+\t\"github.com/golang/glog\"\n+\n+\t\"k8s.io/kubernetes/pkg/apis/extensions\"\n+\t\"k8s.io/kubernetes/pkg/controller\"\n+\tdeploymentutil \"k8s.io/kubernetes/pkg/util/deployment\"\n+\t\"k8s.io/kubernetes/pkg/util/integer\"\n+)\n+\n+// findActiveOrLatest returns the only active or the latest replica set in case there is at most one active\n+// replica set. If there are more active replica sets, then we should proportionally scale them.\n+func findActiveOrLatest(newRS *extensions.ReplicaSet, oldRSs []*extensions.ReplicaSet) *extensions.ReplicaSet {\n+\tif newRS == nil && len(oldRSs) == 0 {\n+\t\treturn nil\n+\t}\n+\n+\tsort.Sort(sort.Reverse(controller.ReplicaSetsByCreationTimestamp(oldRSs)))\n+\tallRSs := controller.FilterActiveReplicaSets(append(oldRSs, newRS))\n+\n+\tswitch len(allRSs) {\n+\tcase 0:\n+\t\t// If there is no active replica set then we should return the newest.\n+\t\tif newRS != nil {\n+\t\t\treturn newRS\n+\t\t}\n+\t\treturn oldRSs[0]\n+\tcase 1:\n+\t\treturn allRSs[0]\n+\tdefault:\n+\t\treturn nil\n+\t}\n+}\n+\n+func getDesiredReplicasAnnotation(rs *extensions.ReplicaSet) (int32, bool) {\n+\tdesiredString, ok := rs.Annotations[deploymentutil.DesiredReplicasAnnotation]\n+\tif !ok {\n+\t\treturn int32(0), false\n+\t}\n+\tdesired, err := strconv.Atoi(desiredString)\n+\tif err != nil {\n+\t\tglog.Warningf(\"Cannot convert the value %q with annotation key %q for the replica set %q\",\n+\t\t\tdesiredString, deploymentutil.DesiredReplicasAnnotation, rs.Name)\n+\t\treturn int32(0), false\n+\t}\n+\treturn int32(desired), true\n+}\n+\n+func getMaxReplicasAnnotation(rs *extensions.ReplicaSet) (int32, bool) {\n+\tmaxString, ok := rs.Annotations[deploymentutil.MaxReplicasAnnotation]\n+\tif !ok {\n+\t\treturn int32(0), false\n+\t}\n+\tmaxReplicas, err := strconv.Atoi(maxString)\n+\tif err != nil {\n+\t\tglog.Warningf(\"Cannot convert the value %q with annotation key %q for the replica set %q\",\n+\t\t\tmaxString, deploymentutil.MaxReplicasAnnotation, rs.Name)\n+\t\treturn int32(0), false\n+\t}\n+\treturn int32(maxReplicas), true\n+}\n+\n+func setReplicasAnnotations(rs *extensions.ReplicaSet, desiredReplicas, maxReplicas int32) bool {\n+\tupdated := false\n+\tif rs.Annotations == nil {\n+\t\trs.Annotations = make(map[string]string)\n+\t}\n+\tdesiredString := fmt.Sprintf(\"%d\", desiredReplicas)\n+\tif hasString := rs.Annotations[deploymentutil.DesiredReplicasAnnotation]; hasString != desiredString {\n+\t\trs.Annotations[deploymentutil.DesiredReplicasAnnotation] = desiredString\n+\t\tupdated = true\n+\t}\n+\tmaxString := fmt.Sprintf(\"%d\", maxReplicas)\n+\tif hasString := rs.Annotations[deploymentutil.MaxReplicasAnnotation]; hasString != maxString {\n+\t\trs.Annotations[deploymentutil.MaxReplicasAnnotation] = maxString\n+\t\tupdated = true\n+\t}\n+\treturn updated\n+}\n+\n+// maxUnavailable returns the maximum unavailable pods a rolling deployment can take.\n+func maxUnavailable(deployment extensions.Deployment) int32 {\n+\tif !deploymentutil.IsRollingUpdate(&deployment) {\n+\t\treturn int32(0)\n+\t}\n+\t// Error caught by validation\n+\t_, maxUnavailable, _ := deploymentutil.ResolveFenceposts(&deployment.Spec.Strategy.RollingUpdate.MaxSurge, &deployment.Spec.Strategy.RollingUpdate.MaxUnavailable, deployment.Spec.Replicas)\n+\treturn maxUnavailable\n+}\n+\n+// maxSurge returns the maximum surge pods a rolling deployment can take.\n+func maxSurge(deployment extensions.Deployment) int32 {\n+\tif !deploymentutil.IsRollingUpdate(&deployment) {\n+\t\treturn int32(0)\n+\t}\n+\t// Error caught by validation\n+\tmaxSurge, _, _ := deploymentutil.ResolveFenceposts(&deployment.Spec.Strategy.RollingUpdate.MaxSurge, &deployment.Spec.Strategy.RollingUpdate.MaxUnavailable, deployment.Spec.Replicas)\n+\treturn maxSurge\n+}\n+\n+// getProportion will estimate the proportion for the provided replica set using 1. the current size\n+// of the parent deployment, 2. the replica count that needs be added on the replica sets of the\n+// deployment, and 3. the total replicas added in the replica sets of the deployment so far.\n+func getProportion(rs *extensions.ReplicaSet, d extensions.Deployment, deploymentReplicasToAdd, deploymentReplicasAdded int32) int32 {\n+\tif rs == nil || rs.Spec.Replicas == 0 || deploymentReplicasToAdd == 0 {\n+\t\treturn int32(0)\n+\t}\n+\n+\trsFraction := getReplicaSetFraction(*rs, d)\n+\tallowed := int(deploymentReplicasToAdd - deploymentReplicasAdded)\n+\n+\tif deploymentReplicasToAdd > 0 {\n+\t\t// Use the minimum between the replica set fraction and the maximum allowed replicas\n+\t\t// when scaling up. This way we ensure we will not scale up more than the allowed\n+\t\t// replicas we can add.\n+\t\treturn int32(integer.IntMin(integer.RoundToInt(rsFraction), allowed))\n+\t}\n+\t// Use the maximum between the replica set fraction and the maximum allowed replicas\n+\t// when scaling down. This way we ensure we will not scale down more than the allowed\n+\t// replicas we can remove.\n+\treturn int32(integer.IntMax(integer.RoundToInt(rsFraction), allowed))\n+}\n+\n+// getReplicaSetFraction estimates the fraction of replicas a replica set can have in\n+// 1. a scaling event during a rollout or 2. when scaling a paused deployment.\n+func getReplicaSetFraction(rs extensions.ReplicaSet, d extensions.Deployment) float64 {\n+\t// If we are scaling down to zero then the fraction of this replica set is its whole size (negative)\n+\tif d.Spec.Replicas == int32(0) {\n+\t\treturn -float64(rs.Spec.Replicas)\n+\t}\n+\n+\tdeploymentReplicas := d.Spec.Replicas + maxSurge(d)\n+\tannotatedReplicas, ok := getMaxReplicasAnnotation(&rs)\n+\tif !ok {\n+\t\t// If we cannot find the annotation then fallback to the current deployment size. Note that this\n+\t\t// will not be an accurate proportion estimation in case other replica sets have different values\n+\t\t// which means that the deployment was scaled at some point but we at least will stay in limits\n+\t\t// due to the min-max comparisons in getProportion.\n+\t\tannotatedReplicas = deploymentReplicas\n+\t}\n+\n+\t// We should never proportionally scale up from zero which means rs.spec.replicas and annotatedReplicas\n+\t// will never be zero here.\n+\tnewRSsize := (float64(rs.Spec.Replicas) * float64(deploymentReplicas)) / float64(annotatedReplicas)","path":"pkg/controller/deployment/util.go","position":165,"original_position":165,"commit_id":"90ba60e334c455a2686b1e16a7f4e069bcb02c62","original_commit_id":"90ba60e334c455a2686b1e16a7f4e069bcb02c62","user":{"login":"pwittrock","id":7882754,"avatar_url":"https://avatars.githubusercontent.com/u/7882754?v=3","gravatar_id":"","url":"https://api.github.com/users/pwittrock","html_url":"https://github.com/pwittrock","followers_url":"https://api.github.com/users/pwittrock/followers","following_url":"https://api.github.com/users/pwittrock/following{/other_user}","gists_url":"https://api.github.com/users/pwittrock/gists{/gist_id}","starred_url":"https://api.github.com/users/pwittrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwittrock/subscriptions","organizations_url":"https://api.github.com/users/pwittrock/orgs","repos_url":"https://api.github.com/users/pwittrock/repos","events_url":"https://api.github.com/users/pwittrock/events{/privacy}","received_events_url":"https://api.github.com/users/pwittrock/received_events","type":"User","site_admin":false},"body":"nit: why not convert to float after multiplying the integers?","created_at":"2016-06-13T20:43:21Z","updated_at":"2016-06-13T20:43:21Z","html_url":"https://github.com/kubernetes/kubernetes/pull/20273#discussion_r66863706","pull_request_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/20273","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/66863706"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/20273#discussion_r66863706"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/20273"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/20273","id":57530174,"html_url":"https://github.com/kubernetes/kubernetes/pull/20273","diff_url":"https://github.com/kubernetes/kubernetes/pull/20273.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/20273.patch","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/20273","number":20273,"state":"open","locked":false,"title":"Proportionally scale paused and rolling deployments","user":{"login":"kargakis","id":3900799,"avatar_url":"https://avatars.githubusercontent.com/u/3900799?v=3","gravatar_id":"","url":"https://api.github.com/users/kargakis","html_url":"https://github.com/kargakis","followers_url":"https://api.github.com/users/kargakis/followers","following_url":"https://api.github.com/users/kargakis/following{/other_user}","gists_url":"https://api.github.com/users/kargakis/gists{/gist_id}","starred_url":"https://api.github.com/users/kargakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kargakis/subscriptions","organizations_url":"https://api.github.com/users/kargakis/orgs","repos_url":"https://api.github.com/users/kargakis/repos","events_url":"https://api.github.com/users/kargakis/events{/privacy}","received_events_url":"https://api.github.com/users/kargakis/received_events","type":"User","site_admin":false},"body":"Enable paused and rolling deployments to be proportionally scaled.\r\nAlso have cleanup policy work for paused deployments.\r\n\r\nFixes #20853\r\nFixes #20966\r\nFixes #20754\r\n\r\n@bgrant0607 @janetkuo @ironcladlou @nikhiljindal\r\n\r\n<!-- Reviewable:start -->\r\n---\r\nThis change is [<img src=\"http://reviewable.k8s.io/review_button.svg\" height=\"35\" align=\"absmiddle\" alt=\"Reviewable\"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/20273)\r\n<!-- Reviewable:end -->\r\n","created_at":"2016-01-28T16:50:25Z","updated_at":"2016-06-13T20:43:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"291df9e4c72a5b1ff3e3f0f64111ffb9157829c0","assignee":{"login":"pwittrock","id":7882754,"avatar_url":"https://avatars.githubusercontent.com/u/7882754?v=3","gravatar_id":"","url":"https://api.github.com/users/pwittrock","html_url":"https://github.com/pwittrock","followers_url":"https://api.github.com/users/pwittrock/followers","following_url":"https://api.github.com/users/pwittrock/following{/other_user}","gists_url":"https://api.github.com/users/pwittrock/gists{/gist_id}","starred_url":"https://api.github.com/users/pwittrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwittrock/subscriptions","organizations_url":"https://api.github.com/users/pwittrock/orgs","repos_url":"https://api.github.com/users/pwittrock/repos","events_url":"https://api.github.com/users/pwittrock/events{/privacy}","received_events_url":"https://api.github.com/users/pwittrock/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/kubernetes/kubernetes/milestones/17","html_url":"https://github.com/kubernetes/kubernetes/milestones/next-candidate","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/milestones/17/labels","id":1510379,"number":17,"title":"next-candidate","description":"Candidates for the next milestone","creator":{"login":"bgrant0607","id":7725777,"avatar_url":"https://avatars.githubusercontent.com/u/7725777?v=3","gravatar_id":"","url":"https://api.github.com/users/bgrant0607","html_url":"https://github.com/bgrant0607","followers_url":"https://api.github.com/users/bgrant0607/followers","following_url":"https://api.github.com/users/bgrant0607/following{/other_user}","gists_url":"https://api.github.com/users/bgrant0607/gists{/gist_id}","starred_url":"https://api.github.com/users/bgrant0607/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgrant0607/subscriptions","organizations_url":"https://api.github.com/users/bgrant0607/orgs","repos_url":"https://api.github.com/users/bgrant0607/repos","events_url":"https://api.github.com/users/bgrant0607/events{/privacy}","received_events_url":"https://api.github.com/users/bgrant0607/received_events","type":"User","site_admin":false},"open_issues":279,"closed_issues":61,"state":"open","created_at":"2016-01-16T17:58:20Z","updated_at":"2016-06-13T20:35:31Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/20273/commits","review_comments_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/20273/comments","review_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/20273/comments","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/90ba60e334c455a2686b1e16a7f4e069bcb02c62","head":{"label":"kargakis:allow-scaling-paused-deployments","ref":"allow-scaling-paused-deployments","sha":"90ba60e334c455a2686b1e16a7f4e069bcb02c62","user":{"login":"kargakis","id":3900799,"avatar_url":"https://avatars.githubusercontent.com/u/3900799?v=3","gravatar_id":"","url":"https://api.github.com/users/kargakis","html_url":"https://github.com/kargakis","followers_url":"https://api.github.com/users/kargakis/followers","following_url":"https://api.github.com/users/kargakis/following{/other_user}","gists_url":"https://api.github.com/users/kargakis/gists{/gist_id}","starred_url":"https://api.github.com/users/kargakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kargakis/subscriptions","organizations_url":"https://api.github.com/users/kargakis/orgs","repos_url":"https://api.github.com/users/kargakis/repos","events_url":"https://api.github.com/users/kargakis/events{/privacy}","received_events_url":"https://api.github.com/users/kargakis/received_events","type":"User","site_admin":false},"repo":{"id":33254730,"name":"kubernetes","full_name":"kargakis/kubernetes","owner":{"login":"kargakis","id":3900799,"avatar_url":"https://avatars.githubusercontent.com/u/3900799?v=3","gravatar_id":"","url":"https://api.github.com/users/kargakis","html_url":"https://github.com/kargakis","followers_url":"https://api.github.com/users/kargakis/followers","following_url":"https://api.github.com/users/kargakis/following{/other_user}","gists_url":"https://api.github.com/users/kargakis/gists{/gist_id}","starred_url":"https://api.github.com/users/kargakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kargakis/subscriptions","organizations_url":"https://api.github.com/users/kargakis/orgs","repos_url":"https://api.github.com/users/kargakis/repos","events_url":"https://api.github.com/users/kargakis/events{/privacy}","received_events_url":"https://api.github.com/users/kargakis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kargakis/kubernetes","description":"Container Cluster Manager from Google","fork":true,"url":"https://api.github.com/repos/kargakis/kubernetes","forks_url":"https://api.github.com/repos/kargakis/kubernetes/forks","keys_url":"https://api.github.com/repos/kargakis/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kargakis/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kargakis/kubernetes/teams","hooks_url":"https://api.github.com/repos/kargakis/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/kargakis/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/kargakis/kubernetes/events","assignees_url":"https://api.github.com/repos/kargakis/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/kargakis/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/kargakis/kubernetes/tags","blobs_url":"https://api.github.com/repos/kargakis/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kargakis/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kargakis/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/kargakis/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kargakis/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/kargakis/kubernetes/languages","stargazers_url":"https://api.github.com/repos/kargakis/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/kargakis/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/kargakis/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/kargakis/kubernetes/subscription","commits_url":"https://api.github.com/repos/kargakis/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/kargakis/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/kargakis/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/kargakis/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/kargakis/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/kargakis/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kargakis/kubernetes/merges","archive_url":"https://api.github.com/repos/kargakis/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kargakis/kubernetes/downloads","issues_url":"https://api.github.com/repos/kargakis/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/kargakis/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/kargakis/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/kargakis/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kargakis/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/kargakis/kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/kargakis/kubernetes/deployments","created_at":"2015-04-01T15:11:37Z","updated_at":"2016-01-12T10:44:51Z","pushed_at":"2016-06-13T11:09:14Z","git_url":"git://github.com/kargakis/kubernetes.git","ssh_url":"git@github.com:kargakis/kubernetes.git","clone_url":"https://github.com/kargakis/kubernetes.git","svn_url":"https://github.com/kargakis/kubernetes","homepage":"http://kubernetes.io","size":266123,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"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":"2ef20b41f6500c8be141edf9d7248cccf6a2c160","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-06-13T20:14:50Z","pushed_at":"2016-06-13T19:25:11Z","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":477824,"stargazers_count":14886,"watchers_count":14886,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4572,"mirror_url":null,"open_issues_count":3714,"forks":4572,"open_issues":3714,"watchers":14886,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/20273"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/20273"},"issue":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/20273"},"comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/20273/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/20273/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/20273/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/kubernetes/statuses/90ba60e334c455a2686b1e16a7f4e069bcb02c62"}}}}
{"actor":{"display_login":"pwittrock"}}