{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/31240","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/31240/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/31240/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/31240/events","html_url":"https://github.com/kubernetes/kubernetes/pull/31240","id":172696949,"number":31240,"title":"Support executing command within \"kubectl proxy\"","user":{"login":"nhlfr","id":1553979,"avatar_url":"https://avatars.githubusercontent.com/u/1553979?v=3","gravatar_id":"","url":"https://api.github.com/users/nhlfr","html_url":"https://github.com/nhlfr","followers_url":"https://api.github.com/users/nhlfr/followers","following_url":"https://api.github.com/users/nhlfr/following{/other_user}","gists_url":"https://api.github.com/users/nhlfr/gists{/gist_id}","starred_url":"https://api.github.com/users/nhlfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhlfr/subscriptions","organizations_url":"https://api.github.com/users/nhlfr/orgs","repos_url":"https://api.github.com/users/nhlfr/repos","events_url":"https://api.github.com/users/nhlfr/events{/privacy}","received_events_url":"https://api.github.com/users/nhlfr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/cla:%20yes","name":"cla: yes","color":"bfe5bf"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/release-note-label-needed","name":"release-note-label-needed","color":"db5a64"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/size/L","name":"size/L","color":"ee9900"}],"state":"closed","locked":false,"assignee":{"login":"fabianofranz","id":158611,"avatar_url":"https://avatars.githubusercontent.com/u/158611?v=3","gravatar_id":"","url":"https://api.github.com/users/fabianofranz","html_url":"https://github.com/fabianofranz","followers_url":"https://api.github.com/users/fabianofranz/followers","following_url":"https://api.github.com/users/fabianofranz/following{/other_user}","gists_url":"https://api.github.com/users/fabianofranz/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianofranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianofranz/subscriptions","organizations_url":"https://api.github.com/users/fabianofranz/orgs","repos_url":"https://api.github.com/users/fabianofranz/repos","events_url":"https://api.github.com/users/fabianofranz/events{/privacy}","received_events_url":"https://api.github.com/users/fabianofranz/received_events","type":"User","site_admin":false},"assignees":[{"login":"fabianofranz","id":158611,"avatar_url":"https://avatars.githubusercontent.com/u/158611?v=3","gravatar_id":"","url":"https://api.github.com/users/fabianofranz","html_url":"https://github.com/fabianofranz","followers_url":"https://api.github.com/users/fabianofranz/followers","following_url":"https://api.github.com/users/fabianofranz/following{/other_user}","gists_url":"https://api.github.com/users/fabianofranz/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianofranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianofranz/subscriptions","organizations_url":"https://api.github.com/users/fabianofranz/orgs","repos_url":"https://api.github.com/users/fabianofranz/repos","events_url":"https://api.github.com/users/fabianofranz/events{/privacy}","received_events_url":"https://api.github.com/users/fabianofranz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2016-08-23T13:20:18Z","updated_at":"2016-09-29T18:14:30Z","closed_at":"2016-09-14T06:49:07Z","pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/31240","html_url":"https://github.com/kubernetes/kubernetes/pull/31240","diff_url":"https://github.com/kubernetes/kubernetes/pull/31240.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/31240.patch"},"body":"<!--  Thanks for sending a pull request!  Here are some tips for you:\r\n1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md\r\n2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md\r\n3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes\r\n-->\r\n\r\n**What this PR does / why we need it**: It allows to execute commands within `kubectl proxy` and replace `{}` with the URL to proxy. Example:\r\n```\r\n$ ./cluster/kubectl.sh proxy --exec \"curl {}/api\"\r\n{\r\n  \"kind\": \"APIVersions\",\r\n  \"versions\": [\r\n    \"v1\"\r\n  ],\r\n  \"serverAddressByClientCIDRs\": [\r\n    {\r\n      \"clientCIDR\": \"0.0.0.0/0\",\r\n      \"serverAddress\": \"172.18.48.92:6443\"\r\n    }\r\n  ]\r\n}%\r\n```\r\n\r\n**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #31178\r\n\r\n**Special notes for your reviewer**:\r\n\r\n**Release note**:\r\n<!--  Steps to write your release note:\r\n1. Use the release-note-* labels to set the release note state (if you have access) \r\n2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. \r\n-->\r\n```release-note\r\n```\r\n\r\nFixes #31178\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.kubernetes.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/31240)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/250547481","html_url":"https://github.com/kubernetes/kubernetes/pull/31240#issuecomment-250547481","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/31240","id":250547481,"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},"created_at":"2016-09-29T18:14:30Z","updated_at":"2016-09-29T18:14:30Z","body":"@nhlfr Kompose used to rely on the proxy to talk to the kube-apiserver so that is another use case."}}
{"actor":{"display_login":"pwittrock"}}