Skip to content

Commit 562f036

Browse files
authored
299: removed outdated comments (#301)
1 parent 38f2b67 commit 562f036

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

controllers/httproute_controller.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package controllers
1919
import (
2020
"context"
2121
"fmt"
22+
2223
"github.com/golang/glog"
2324
"github.com/pkg/errors"
2425

@@ -164,15 +165,13 @@ func (r *HTTPRouteReconciler) isHTTPRouteRelevant(ctx context.Context, httpRoute
164165

165166
gw := &gateway_api.Gateway{}
166167

167-
// TODO handle multiple parentRefs
168168
gwNamespace := httpRoute.Namespace
169169
if httpRoute.Spec.ParentRefs[0].Namespace != nil {
170170
gwNamespace = string(*httpRoute.Spec.ParentRefs[0].Namespace)
171171
}
172172
gwName := types.NamespacedName{
173173
Namespace: gwNamespace,
174-
// TODO assume one parent for now and point to service network
175-
Name: string(httpRoute.Spec.ParentRefs[0].Name),
174+
Name: string(httpRoute.Spec.ParentRefs[0].Name),
176175
}
177176

178177
if err := r.gwReconciler.Client.Get(ctx, gwName, gw); err != nil {

0 commit comments

Comments
 (0)