Skip to content

Commit

Permalink
fix: AIGatewayRoute controller not watches for HTTPRoute events
Browse files Browse the repository at this point in the history
Signed-off-by: Sivanantham Chinnaiyan <[email protected]>
  • Loading branch information
sivanantha321 committed Jan 22, 2025
1 parent 4a0274f commit e20cdbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func StartControllers(ctx context.Context, config *rest.Config, logger logr.Logg
routeC := NewAIGatewayRouteController(c, kubernetes.NewForConfigOrDie(config), logger, sinkChan)
if err = ctrl.NewControllerManagedBy(mgr).
For(&aigv1a1.AIGatewayRoute{}).
Owns(&gwapiv1.HTTPRoute{}).
Complete(routeC); err != nil {
return fmt.Errorf("failed to create controller for AIGatewayRoute: %w", err)
}
Expand Down

0 comments on commit e20cdbb

Please sign in to comment.