Skip to content

Commit 109bf9f

Browse files
dspoCopilot
andauthored
Update internal/controller/httproutepolicy.go
Co-authored-by: Copilot <[email protected]>
1 parent 9f7305d commit 109bf9f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/controller/httproutepolicy.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ func (r *IngressReconciler) processHTTPRoutePolicies(tctx *provider.TranslateCon
122122
list v1alpha1.HTTPRoutePolicyList
123123
key = indexer.GenHTTPRoutePolicyIndexKey(networkingv1.GroupName, "Ingress", ingress.GetNamespace(), ingress.GetName(), "")
124124
)
125-
if err := r.List(context.Background(), &list, client.MatchingFields{indexer.PolicyTargetRefs: key}); err != nil {
126-
return err
125+
if err := r.List(ctx, &list, client.MatchingFields{indexer.PolicyTargetRefs: key}); err != nil {
127126
}
128127

129128
for _, item := range list.Items {

0 commit comments

Comments
 (0)