{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16915","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16915/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16915/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16915/events","html_url":"https://github.com/kubernetes/kubernetes/pull/16915","id":115493194,"number":16915,"title":"Move port utility out of endpoints controller","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},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/size/L","name":"size/L","color":"ee9900"}],"state":"open","locked":false,"assignee":{"login":"smarterclayton","id":1163175,"avatar_url":"https://avatars.githubusercontent.com/u/1163175?v=3","gravatar_id":"","url":"https://api.github.com/users/smarterclayton","html_url":"https://github.com/smarterclayton","followers_url":"https://api.github.com/users/smarterclayton/followers","following_url":"https://api.github.com/users/smarterclayton/following{/other_user}","gists_url":"https://api.github.com/users/smarterclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/smarterclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarterclayton/subscriptions","organizations_url":"https://api.github.com/users/smarterclayton/orgs","repos_url":"https://api.github.com/users/smarterclayton/repos","events_url":"https://api.github.com/users/smarterclayton/events{/privacy}","received_events_url":"https://api.github.com/users/smarterclayton/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-11-06T12:05:30Z","updated_at":"2015-11-14T05:43:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/16915","html_url":"https://github.com/kubernetes/kubernetes/pull/16915","diff_url":"https://github.com/kubernetes/kubernetes/pull/16915.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/16915.patch"},"body":"The logic in here is pretty re-usable that it seems natural to move it into a separate util package. \r\n\r\ncc: @pweil- "},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/156638268","html_url":"https://github.com/kubernetes/kubernetes/pull/16915#issuecomment-156638268","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16915","id":156638268,"user":{"login":"thockin","id":5595220,"avatar_url":"https://avatars.githubusercontent.com/u/5595220?v=3","gravatar_id":"","url":"https://api.github.com/users/thockin","html_url":"https://github.com/thockin","followers_url":"https://api.github.com/users/thockin/followers","following_url":"https://api.github.com/users/thockin/following{/other_user}","gists_url":"https://api.github.com/users/thockin/gists{/gist_id}","starred_url":"https://api.github.com/users/thockin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thockin/subscriptions","organizations_url":"https://api.github.com/users/thockin/orgs","repos_url":"https://api.github.com/users/thockin/repos","events_url":"https://api.github.com/users/thockin/events{/privacy}","received_events_url":"https://api.github.com/users/thockin/received_events","type":"User","site_admin":false},"created_at":"2015-11-14T05:43:21Z","updated_at":"2015-11-14T05:43:21Z","body":"Do you have a use for this?  I'm tryin to resist the urge to make everything halfway-reusable into a util.  I prefer that util really be things that have no kubernetes tie-ins (we're not there yet but getting better).\r\n\r\nIf we actually have a use for this, I might see it in `pkg/api/util/pod/` - we have something similar for endpoints logic that is used in a few places."}}