Skip to content

Commit

Permalink
remove rlp watcher for gateway rlps
Browse files Browse the repository at this point in the history
  • Loading branch information
eguzki committed Aug 30, 2023
1 parent aa05f01 commit 1e63d5a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 68 deletions.
59 changes: 0 additions & 59 deletions controllers/gateway_rlp_eventmapper.go

This file was deleted.

9 changes: 0 additions & 9 deletions controllers/ratelimitpolicy_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,6 @@ func (r *RateLimitPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error {
gatewayEventMapper := &GatewayEventMapper{
Logger: r.Logger().WithName("gatewayEventMapper"),
}
gatewayRateLimtPolicyEventMapper := &GatewayRateLimitPolicyEventMapper{
Logger: r.Logger().WithName("gatewayRateLimitPolicyEventMapper"),
Client: r.Client(),
}
return ctrl.NewControllerManagedBy(mgr).
For(&kuadrantv1beta2.RateLimitPolicy{}).
Watches(
Expand All @@ -253,10 +249,5 @@ func (r *RateLimitPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error {
&source.Kind{Type: &gatewayapiv1beta1.Gateway{}},
handler.EnqueueRequestsFromMapFunc(gatewayEventMapper.MapToRateLimitPolicy),
).
// When gateway level RLP changes, notify route level RLP's
Watches(
&source.Kind{Type: &kuadrantv1beta2.RateLimitPolicy{}},
handler.EnqueueRequestsFromMapFunc(gatewayRateLimtPolicyEventMapper.MapRouteRateLimitPolicy),
).
Complete(r)
}

0 comments on commit 1e63d5a

Please sign in to comment.