From 15623c89f180a8261f2e8d85b04e6b923b14c44c Mon Sep 17 00:00:00 2001 From: vavrajosef Date: Sun, 23 Jul 2023 22:53:00 +0200 Subject: [PATCH] 299: removed outdated comments --- controllers/httproute_controller.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/controllers/httproute_controller.go b/controllers/httproute_controller.go index edc61919..44794ca1 100644 --- a/controllers/httproute_controller.go +++ b/controllers/httproute_controller.go @@ -19,6 +19,7 @@ package controllers import ( "context" "fmt" + "github.com/golang/glog" "github.com/pkg/errors" @@ -164,15 +165,13 @@ func (r *HTTPRouteReconciler) isHTTPRouteRelevant(ctx context.Context, httpRoute gw := &gateway_api.Gateway{} - // TODO handle multiple parentRefs gwNamespace := httpRoute.Namespace if httpRoute.Spec.ParentRefs[0].Namespace != nil { gwNamespace = string(*httpRoute.Spec.ParentRefs[0].Namespace) } gwName := types.NamespacedName{ Namespace: gwNamespace, - // TODO assume one parent for now and point to service network - Name: string(httpRoute.Spec.ParentRefs[0].Name), + Name: string(httpRoute.Spec.ParentRefs[0].Name), } if err := r.gwReconciler.Client.Get(ctx, gwName, gw); err != nil {