Skip to content

Commit

Permalink
gateway2: reconcile on HTTPRoute annotation change (#10522)
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Ram <[email protected]>
  • Loading branch information
shashankram authored Dec 19, 2024
1 parent 6c6f272 commit f596af6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions changelog/v1.18.2/httproute-annotation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
changelog:
- type: FIX
issueLink: https://github.com/solo-io/solo-projects/issues/7514
resolvesIssue: false
description: |
Route delegation makes use of delegation.gateway.solo.io/*
annotations, so changes to annotations should reconcile HTTPRoutes.
2 changes: 1 addition & 1 deletion projects/gateway2/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func (c *controllerBuilder) watchCustomResourceDefinitions(_ context.Context) er

func (c *controllerBuilder) watchHttpRoute(_ context.Context) error {
return ctrl.NewControllerManagedBy(c.cfg.Mgr).
WithEventFilter(predicate.GenerationChangedPredicate{}).
WithEventFilter(predicate.Or(predicate.GenerationChangedPredicate{}, predicate.AnnotationChangedPredicate{})).
For(&apiv1.HTTPRoute{}).
Complete(reconcile.Func(c.reconciler.ReconcileHttpRoutes))
}
Expand Down

0 comments on commit f596af6

Please sign in to comment.