Skip to content

Commit

Permalink
update policy status on all kinds of policy-releated event (deleting …
Browse files Browse the repository at this point in the history
…a policy may also affect the state of the resources status depends on)

Signed-off-by: Guilherme Cassolato <[email protected]>
  • Loading branch information
guicassolato committed Oct 18, 2024
1 parent fe42854 commit 4aa8229
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions controllers/ratelimitpolicy_status_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,7 @@ type rateLimitPolicyStatusUpdater struct {
func (r *rateLimitPolicyStatusUpdater) Subscription() controller.Subscription {
return controller.Subscription{
ReconcileFunc: r.UpdateStatus,
Events: []controller.ResourceEventMatcher{
{Kind: &kuadrantv1beta1.KuadrantGroupKind},
{Kind: &machinery.GatewayClassGroupKind},
{Kind: &machinery.GatewayGroupKind},
{Kind: &machinery.HTTPRouteGroupKind},
{Kind: &kuadrantv1beta3.RateLimitPolicyGroupKind, EventType: ptr.To(controller.CreateEvent)},
{Kind: &kuadrantv1beta3.RateLimitPolicyGroupKind, EventType: ptr.To(controller.UpdateEvent)},
{Kind: &kuadrantv1beta1.LimitadorGroupKind},
{Kind: &kuadrantistio.EnvoyFilterGroupKind},
{Kind: &kuadrantistio.WasmPluginGroupKind},
{Kind: &kuadrantenvoygateway.EnvoyPatchPolicyGroupKind},
{Kind: &kuadrantenvoygateway.EnvoyExtensionPolicyGroupKind},
},
Events: rateLimitEventMatchers,
}
}

Expand Down

0 comments on commit 4aa8229

Please sign in to comment.