Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

controller: removes sink implementation #364

Merged
merged 4 commits into from
Feb 18, 2025
Merged

Conversation

mathetake
Copy link
Member

@mathetake mathetake commented Feb 18, 2025

Commit Message

This removes the config sink style implementation of controller. Previously, there the config sink was used as a central place to do the mutation that involves multiple resources. However, it unnecessarily comes with the complexity and this simplifies the implementation by removing it.

Majority of the changes are code moving, especially moving the resource mutation code from sink to under AIGatewayRoute controller.

This was brought up in the conversation with @sanposhiho and more follow up PRs will come to polish the implementation.

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
@mathetake mathetake changed the title controller: nuke sink implementation controller: removes sink implementation Feb 18, 2025
@mathetake mathetake marked this pull request as ready for review February 18, 2025 22:38
@mathetake mathetake requested a review from a team as a code owner February 18, 2025 22:38
@mathetake mathetake merged commit 702370d into main Feb 18, 2025
19 checks passed
@mathetake mathetake deleted the refactoringrefactoring branch February 18, 2025 22:46
mathetake added a commit that referenced this pull request Feb 18, 2025
**Commit Message**

Previously, the mutex was not taken on the OIDC cache, but after #364,
it is necessary as the sync function of each controller now might be
invoked by other controllers.

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
daixiang0 pushed a commit to daixiang0/ai-gateway that referenced this pull request Feb 19, 2025
**Commit Message**

This removes the config sink style implementation of controller.
Previously, there the config sink was used as a central place to do the
mutation that involves multiple resources. However, it unnecessarily
comes with the complexity and this simplifies the implementation by
removing it.

Majority of the changes are code moving, especially moving the resource
mutation code from sink to under AIGatewayRoute controller.

This was brought up in the conversation with @sanposhiho and more follow
up PRs will come to polish the implementation.

---------

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Loong <long0dai@foxmail.com>
daixiang0 pushed a commit to daixiang0/ai-gateway that referenced this pull request Feb 19, 2025
**Commit Message**

Previously, the mutex was not taken on the OIDC cache, but after envoyproxy#364,
it is necessary as the sync function of each controller now might be
invoked by other controllers.

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Loong <long0dai@foxmail.com>
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.

1 participant