Merge pull request #79813 from tedyu/match-container-for-port

Remove the TODO for container name matching
This commit is contained in:
Kubernetes Prow Robot 2019-07-08 16:00:39 -07:00 committed by GitHub
commit 2542746c1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,7 +247,6 @@ func ResourceLocation(getter ResourceGetter, rt http.RoundTripper, ctx context.C
if !valid { if !valid {
return nil, nil, errors.NewBadRequest(fmt.Sprintf("invalid pod request %q", id)) return nil, nil, errors.NewBadRequest(fmt.Sprintf("invalid pod request %q", id))
} }
// TODO: if port is not a number but a "(container)/(portname)", do a name lookup.
pod, err := getPod(getter, ctx, name) pod, err := getPod(getter, ctx, name)
if err != nil { if err != nil {