{"action":"opened","number":41824,"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/41824","id":107252951,"html_url":"https://github.com/kubernetes/kubernetes/pull/41824","diff_url":"https://github.com/kubernetes/kubernetes/pull/41824.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/41824.patch","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/41824","number":41824,"state":"open","locked":false,"title":"[WIP] HPA Controller: Use Custom Metrics API","user":{"login":"DirectXMan12","id":119737,"avatar_url":"https://avatars.githubusercontent.com/u/119737?v=3","gravatar_id":"","url":"https://api.github.com/users/DirectXMan12","html_url":"https://github.com/DirectXMan12","followers_url":"https://api.github.com/users/DirectXMan12/followers","following_url":"https://api.github.com/users/DirectXMan12/following{/other_user}","gists_url":"https://api.github.com/users/DirectXMan12/gists{/gist_id}","starred_url":"https://api.github.com/users/DirectXMan12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DirectXMan12/subscriptions","organizations_url":"https://api.github.com/users/DirectXMan12/orgs","repos_url":"https://api.github.com/users/DirectXMan12/repos","events_url":"https://api.github.com/users/DirectXMan12/events{/privacy}","received_events_url":"https://api.github.com/users/DirectXMan12/received_events","type":"User","site_admin":false},"body":"This commit switches over the HPA controller to use the custom metrics\r\nAPI.  It also converts the HPA controller to use the generated client\r\nin k8s.io/metrics for the resource metrics API.\r\n\r\nIn order to enable support, you must enable\r\n`--horizontal-pod-autoscaler-use-rest-clients` on the\r\ncontroller-manager, which will switch the HPA controller's MetricsClient\r\nimplementation over to use the standard rest clients for both custom\r\nmetrics and resource metrics.  This requires that at the least resource\r\nmetrics API is registered with kube-aggregator, and that the controller\r\nmanager is pointed at kube-aggregator.  For this to work, Heapster\r\nmust be serving the new-style API server (`--api-server=true`).\r\n\r\n**Release note**:\r\n```release-note\r\nAllow the Horizontal Pod Autoscaler controller to talk to the metrics API and custom metrics API as standard APIs.\r\n```\r\n","created_at":"2017-02-21T18:45:57Z","updated_at":"2017-02-21T18:45:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/41824/commits","review_comments_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/41824/comments","review_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/41824/comments","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/8092c0ea622d2334c0dfe0b64d68c768fbcd1868","head":{"label":"DirectXMan12:feature/hpa-v2-use-cm-api","ref":"feature/hpa-v2-use-cm-api","sha":"8092c0ea622d2334c0dfe0b64d68c768fbcd1868","user":{"login":"DirectXMan12","id":119737,"avatar_url":"https://avatars.githubusercontent.com/u/119737?v=3","gravatar_id":"","url":"https://api.github.com/users/DirectXMan12","html_url":"https://github.com/DirectXMan12","followers_url":"https://api.github.com/users/DirectXMan12/followers","following_url":"https://api.github.com/users/DirectXMan12/following{/other_user}","gists_url":"https://api.github.com/users/DirectXMan12/gists{/gist_id}","starred_url":"https://api.github.com/users/DirectXMan12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DirectXMan12/subscriptions","organizations_url":"https://api.github.com/users/DirectXMan12/orgs","repos_url":"https://api.github.com/users/DirectXMan12/repos","events_url":"https://api.github.com/users/DirectXMan12/events{/privacy}","received_events_url":"https://api.github.com/users/DirectXMan12/received_events","type":"User","site_admin":false},"repo":{"id":39400877,"name":"kubernetes","full_name":"DirectXMan12/kubernetes","owner":{"login":"DirectXMan12","id":119737,"avatar_url":"https://avatars.githubusercontent.com/u/119737?v=3","gravatar_id":"","url":"https://api.github.com/users/DirectXMan12","html_url":"https://github.com/DirectXMan12","followers_url":"https://api.github.com/users/DirectXMan12/followers","following_url":"https://api.github.com/users/DirectXMan12/following{/other_user}","gists_url":"https://api.github.com/users/DirectXMan12/gists{/gist_id}","starred_url":"https://api.github.com/users/DirectXMan12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DirectXMan12/subscriptions","organizations_url":"https://api.github.com/users/DirectXMan12/orgs","repos_url":"https://api.github.com/users/DirectXMan12/repos","events_url":"https://api.github.com/users/DirectXMan12/events{/privacy}","received_events_url":"https://api.github.com/users/DirectXMan12/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DirectXMan12/kubernetes","description":"Container Cluster Manager from Google","fork":true,"url":"https://api.github.com/repos/DirectXMan12/kubernetes","forks_url":"https://api.github.com/repos/DirectXMan12/kubernetes/forks","keys_url":"https://api.github.com/repos/DirectXMan12/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DirectXMan12/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DirectXMan12/kubernetes/teams","hooks_url":"https://api.github.com/repos/DirectXMan12/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/DirectXMan12/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/DirectXMan12/kubernetes/events","assignees_url":"https://api.github.com/repos/DirectXMan12/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/DirectXMan12/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/DirectXMan12/kubernetes/tags","blobs_url":"https://api.github.com/repos/DirectXMan12/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DirectXMan12/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DirectXMan12/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/DirectXMan12/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DirectXMan12/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/DirectXMan12/kubernetes/languages","stargazers_url":"https://api.github.com/repos/DirectXMan12/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/DirectXMan12/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/DirectXMan12/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/DirectXMan12/kubernetes/subscription","commits_url":"https://api.github.com/repos/DirectXMan12/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/DirectXMan12/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/DirectXMan12/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/DirectXMan12/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/DirectXMan12/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/DirectXMan12/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DirectXMan12/kubernetes/merges","archive_url":"https://api.github.com/repos/DirectXMan12/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DirectXMan12/kubernetes/downloads","issues_url":"https://api.github.com/repos/DirectXMan12/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/DirectXMan12/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/DirectXMan12/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/DirectXMan12/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DirectXMan12/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/DirectXMan12/kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/DirectXMan12/kubernetes/deployments","created_at":"2015-07-20T18:22:30Z","updated_at":"2015-07-20T18:22:36Z","pushed_at":"2017-02-21T18:40:30Z","git_url":"git://github.com/DirectXMan12/kubernetes.git","ssh_url":"git@github.com:DirectXMan12/kubernetes.git","clone_url":"https://github.com/DirectXMan12/kubernetes.git","svn_url":"https://github.com/DirectXMan12/kubernetes","homepage":"http://kubernetes.io","size":392571,"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":"746cc5d284a1e21040ae71b978befc7d9a05fa85","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":"2017-02-21T18:30:20Z","pushed_at":"2017-02-21T18:42:43Z","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":557309,"stargazers_count":20801,"watchers_count":20801,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7104,"mirror_url":null,"open_issues_count":5657,"forks":7104,"open_issues":5657,"watchers":20801,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/41824"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/41824"},"issue":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/41824"},"comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/41824/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/41824/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/41824/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/kubernetes/statuses/8092c0ea622d2334c0dfe0b64d68c768fbcd1868"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":724,"deletions":326,"changed_files":9}}
{"actor":{"display_login":"DirectXMan12"}}