-
Notifications
You must be signed in to change notification settings - Fork 347
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
refactor the kubernetes provider to be provider-agnostic #3213
Comments
Make sense to me, it helps for multi-provider support. |
will try to first refactor the current existing k8s provider, and then implement for the new coming file provider. |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. |
Is it possible with this refactoring that part of the gateway resources come from k8s and another part from files ( Gateway api related)? |
hey @sky92zwq we'll need to update the |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. |
Description:
For now, all the resources related process method in k8s provider are coupling deeply with k8s client, we should free these method from it.
gateway/internal/provider/kubernetes/controller.go
Line 698 in e8b8074
So I propose a refactor: the basic idea is to separate how we process resources and how we retrieve resources.
By defining
Operations
interface andResourceProcessor
structure, each provider can maintain their own implemention ofOperations
, and different provider can share the sameResourceProcessor
.we can
[optional Relevant Links:]
The text was updated successfully, but these errors were encountered: