Skip to content

Commit

Permalink
fix: skip the not found filters in grpc routes (#1873)
Browse files Browse the repository at this point in the history
add continue to the not found filters in grpc routes

Signed-off-by: sh2 <shawnhxh@outlook.com>
  • Loading branch information
shawnh2 authored Sep 12, 2023
1 parent 98cb3a8 commit 5cb8697
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/provider/kubernetes/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ func (r *gatewayAPIReconciler) processGRPCRoutes(ctx context.Context, gatewayNam
authFilter, ok := resourceMap.authenFilters[key]
if !ok {
r.log.Error(err, "AuthenticationFilter not found; bypassing rule", "index", i)
continue
}

resourceTree.AuthenticationFilters = append(resourceTree.AuthenticationFilters, authFilter)
Expand All @@ -193,6 +194,7 @@ func (r *gatewayAPIReconciler) processGRPCRoutes(ctx context.Context, gatewayNam
rateLimitFilter, ok := resourceMap.rateLimitFilters[key]
if !ok {
r.log.Error(err, "RateLimitFilter not found; bypassing rule", "index", i)
continue
}

resourceTree.RateLimitFilters = append(resourceTree.RateLimitFilters, rateLimitFilter)
Expand Down

0 comments on commit 5cb8697

Please sign in to comment.