{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/59809","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/59809/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/59809/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/59809/events","html_url":"https://github.com/kubernetes/kubernetes/pull/59809","id":296774904,"number":59809,"title":"kubectl port-forward should resolve service port to target port","user":{"login":"phsiao","id":31624,"avatar_url":"https://avatars0.githubusercontent.com/u/31624?v=4","gravatar_id":"","url":"https://api.github.com/users/phsiao","html_url":"https://github.com/phsiao","followers_url":"https://api.github.com/users/phsiao/followers","following_url":"https://api.github.com/users/phsiao/following{/other_user}","gists_url":"https://api.github.com/users/phsiao/gists{/gist_id}","starred_url":"https://api.github.com/users/phsiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phsiao/subscriptions","organizations_url":"https://api.github.com/users/phsiao/orgs","repos_url":"https://api.github.com/users/phsiao/repos","events_url":"https://api.github.com/users/phsiao/events{/privacy}","received_events_url":"https://api.github.com/users/phsiao/received_events","type":"User","site_admin":false},"labels":[{"id":477397086,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/cncf-cla:%20yes","name":"cncf-cla: yes","color":"bfe5bf","default":false},{"id":148225179,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/lgtm","name":"lgtm","color":"15dd18","default":false},{"id":200149833,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/release-note","name":"release-note","color":"c2e0c6","default":false},{"id":450823910,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/cli","name":"sig/cli","color":"d2b48c","default":false},{"id":116712108,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/network","name":"sig/network","color":"d2b48c","default":false},{"id":253451057,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/size/XL","name":"size/XL","color":"ee5500","default":false}],"state":"open","locked":false,"assignee":{"login":"liggitt","id":980082,"avatar_url":"https://avatars0.githubusercontent.com/u/980082?v=4","gravatar_id":"","url":"https://api.github.com/users/liggitt","html_url":"https://github.com/liggitt","followers_url":"https://api.github.com/users/liggitt/followers","following_url":"https://api.github.com/users/liggitt/following{/other_user}","gists_url":"https://api.github.com/users/liggitt/gists{/gist_id}","starred_url":"https://api.github.com/users/liggitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liggitt/subscriptions","organizations_url":"https://api.github.com/users/liggitt/orgs","repos_url":"https://api.github.com/users/liggitt/repos","events_url":"https://api.github.com/users/liggitt/events{/privacy}","received_events_url":"https://api.github.com/users/liggitt/received_events","type":"User","site_admin":false},"assignees":[{"login":"liggitt","id":980082,"avatar_url":"https://avatars0.githubusercontent.com/u/980082?v=4","gravatar_id":"","url":"https://api.github.com/users/liggitt","html_url":"https://github.com/liggitt","followers_url":"https://api.github.com/users/liggitt/followers","following_url":"https://api.github.com/users/liggitt/following{/other_user}","gists_url":"https://api.github.com/users/liggitt/gists{/gist_id}","starred_url":"https://api.github.com/users/liggitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liggitt/subscriptions","organizations_url":"https://api.github.com/users/liggitt/orgs","repos_url":"https://api.github.com/users/liggitt/repos","events_url":"https://api.github.com/users/liggitt/events{/privacy}","received_events_url":"https://api.github.com/users/liggitt/received_events","type":"User","site_admin":false}],"milestone":null,"comments":12,"created_at":"2018-02-13T15:20:40Z","updated_at":"2018-02-16T01:09:56Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/59809","html_url":"https://github.com/kubernetes/kubernetes/pull/59809","diff_url":"https://github.com/kubernetes/kubernetes/pull/59809.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/59809.patch"},"body":"**What this PR does / why we need it**:\r\n\r\nContinues on the work in #59705, this PR adds additional support for looking up targetPort for a service, as well as enable using svc/name to select a pod.\r\n\r\n**Which issue(s) this PR fixes**:\r\nFixes #15180\r\nFixes #59733\r\n\r\n**Special notes for your reviewer**:\r\n\r\nI decided to create pkg/kubectl/util/service_port.go to contain two functions that might be re-usable.\r\n\r\n**Release note**:\r\n```release-note\r\n`kubectl port-forward` now supports specifying a service to port forward to: `kubectl port-forward svc/myservice 8443:443`\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/366115930","html_url":"https://github.com/kubernetes/kubernetes/pull/59809#issuecomment-366115930","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/59809","id":366115930,"user":{"login":"k8s-ci-robot","id":20407524,"avatar_url":"https://avatars0.githubusercontent.com/u/20407524?v=4","gravatar_id":"","url":"https://api.github.com/users/k8s-ci-robot","html_url":"https://github.com/k8s-ci-robot","followers_url":"https://api.github.com/users/k8s-ci-robot/followers","following_url":"https://api.github.com/users/k8s-ci-robot/following{/other_user}","gists_url":"https://api.github.com/users/k8s-ci-robot/gists{/gist_id}","starred_url":"https://api.github.com/users/k8s-ci-robot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k8s-ci-robot/subscriptions","organizations_url":"https://api.github.com/users/k8s-ci-robot/orgs","repos_url":"https://api.github.com/users/k8s-ci-robot/repos","events_url":"https://api.github.com/users/k8s-ci-robot/events{/privacy}","received_events_url":"https://api.github.com/users/k8s-ci-robot/received_events","type":"User","site_admin":false},"created_at":"2018-02-16T01:09:56Z","updated_at":"2018-02-16T01:09:56Z","author_association":"COLLABORATOR","body":"[APPROVALNOTIFIER] This PR is **APPROVED**\n\nThis pull-request has been approved by: *<a href=\"https://github.com/kubernetes/kubernetes/pull/59809#issuecomment-366115906\" title=\"LGTM\">liggitt</a>*, *<a href=\"https://github.com/kubernetes/kubernetes/pull/59809#\" title=\"Author self-approved\">phsiao</a>*\n\nThe full list of commands accepted by this bot can be found [here](https://go.k8s.io/bot-commands).\n\nThe pull request process is described [here](https://git.k8s.io/community/contributors/guide/owners.md#the-code-review-process)\n\n<details >\nNeeds approval from an approver in each of these files:\n\n- ~~[pkg/kubectl/OWNERS](https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/OWNERS)~~ [liggitt]\n\nApprovers can indicate their approval by writing `/approve` in a comment\nApprovers can cancel approval by writing `/approve cancel` in a comment\n</details>\n<!-- META={\"approvers\":[]} -->"}}
{"actor":{"display_login":"k8s-ci-robot"}}