From ba5477ebf35c62cfd8e6f8f5e40b77a08ffb5d58 Mon Sep 17 00:00:00 2001 From: Guilherme Cassolato Date: Fri, 13 Jan 2023 14:51:54 +0100 Subject: [PATCH] fix: RLP cleanup when the target HTTPRoute is missing --- pkg/reconcilers/targetref_reconciler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/reconcilers/targetref_reconciler.go b/pkg/reconcilers/targetref_reconciler.go index 459606b83..501870d48 100644 --- a/pkg/reconcilers/targetref_reconciler.go +++ b/pkg/reconcilers/targetref_reconciler.go @@ -249,7 +249,7 @@ func (r *TargetRefReconciler) ComputeGatewayDiffs(ctx context.Context, policy co logger, _ := logr.FromContext(ctx) gwKeys, err := r.TargetedGatewayKeys(ctx, policy.GetTargetRef(), policy.GetNamespace()) - if err != nil { + if err != nil && !apierrors.IsNotFound(err) { return nil, err }