From b29b0c92819d270fb6833a4ed7cc82f996a21b65 Mon Sep 17 00:00:00 2001 From: danehans Date: Wed, 30 Nov 2022 11:15:59 -0800 Subject: [PATCH] Updates Kube Provider to Support Unmanaged HTTPRoutes Signed-off-by: danehans --- internal/provider/kubernetes/httproute.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/provider/kubernetes/httproute.go b/internal/provider/kubernetes/httproute.go index e99ef92cbf..fca21de4f2 100644 --- a/internal/provider/kubernetes/httproute.go +++ b/internal/provider/kubernetes/httproute.go @@ -214,7 +214,7 @@ func (r *httpRouteReconciler) Reconcile(ctx context.Context, request reconcile.R // Remove the route from the watchable map since it's invalid. r.resources.HTTPRoutes.Delete(routeKey) r.log.Error(err, "invalid parentRefs for httproute") - return reconcile.Result{}, nil + continue } log.Info("validated httproute parentRefs") @@ -223,7 +223,7 @@ func (r *httpRouteReconciler) Reconcile(ctx context.Context, request reconcile.R // a managed Gateway. log.Info("httproute doesn't reference any managed gateways") r.resources.HTTPRoutes.Delete(routeKey) - return reconcile.Result{}, nil + continue } // only store the resource if it does not exist or it has a newer spec.