Skip to content

controller: progpagate obj deletion to Gateways#857

Merged
mathetake merged 6 commits intomainfrom
finalizeraigatewayroute
Jul 12, 2025
Merged

controller: progpagate obj deletion to Gateways#857
mathetake merged 6 commits intomainfrom
finalizeraigatewayroute

Conversation

@mathetake
Copy link
Member

Description

This fixes a bug that the deletion event of AI Gateway resources were not propagated and reflected on the Gateway configuration. This changes the controller code so that it will add a finalizer and handle the deletion even gracefully.

Related Issues/PRs (if applicable)

Closes #728
Necessary for #836

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
@mathetake mathetake force-pushed the finalizeraigatewayroute branch from fdc813b to a770109 Compare July 11, 2025 02:01
@mathetake mathetake marked this pull request as ready for review July 11, 2025 02:38
@mathetake mathetake requested a review from a team as a code owner July 11, 2025 02:38
Copy link
Member

@Xunzhuo Xunzhuo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have we clean up the generated secrets as well as the generated eep?

@mathetake
Copy link
Member Author

That's another topic than finalizer, and planning to work on it in a follow up PR

@Xunzhuo
Copy link
Member

Xunzhuo commented Jul 11, 2025

Yep, that's cool. I am thinking about adding e2e around deletion, make sure the lifecycle of resources is completed

@mathetake
Copy link
Member Author

yep, we can do that but i think that controller-only e2e could be done in tests/controller as much as possible for testability/faster iteration

Copy link
Member

@Xunzhuo Xunzhuo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@mathetake mathetake merged commit f037bd2 into main Jul 12, 2025
23 checks passed
@mathetake mathetake deleted the finalizeraigatewayroute branch July 12, 2025 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gateway Controller not reconciled on AIGatewayRoute delete

2 participants