-
Notifications
You must be signed in to change notification settings - Fork 68
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
Duplicate resources when using implementation-specific annotations #109
Comments
/good-first-issue |
@mlavacca: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
From a quick look, the issue seems to be because each provider calls the common |
Similarly to what @levikobi suggested in their comment, I suggest adding the |
Absolutely @mlavacca, that's exactly what I meant 👍 |
In the provider code, we get all the gateway resources from the common Maybe I am missing something. |
@pottekkat pretty much yes, but after reading your comment I'm realizing it isn't as intuitive as it should be. Maybe we should add a new function to the common package, which will filter ingresses based on class name. Every provider will call it before calling ToGateway. Thoughts @mlavacca @pottekkat? |
I agree with adding a dedicated filter function to the common package, but not on leaving implementations to call them. This is not optional, and I think it should not be on the providers' shoulders, but instead, something addressed without providers's awareness. For this reason, I think that the |
I tend to agree with you @mlavacca, that's a good point IMO. I would also prefer not to let the implementations the extra "power" / "responsibility". Maybe we can call the filter function in the i2gw pkg, and only pass implementations their associated resources? |
Thanks for flagging this. I think it is touching a topic we discussed on #99 with @dpasiukevich. More specifically this comment - #99 (comment). The solution to this would be to also move ingresses to be fetched by the provider (perhaps every provider will query the ingresses with the relevant ingress classes it needs). Same as we do with CRDs. Thoughts? |
/assign @LiorLieberman |
What happened:
When converting Ingress resources with implementation-specific annotations, the output contains duplicated
Gateway
andHTTPRoute
resources.See #104 (comment) for details.
Also see: #104 (comment) and #104 (comment)
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
See #104 (comment) for reproducing.
Anything else we need to know?:
No.
The text was updated successfully, but these errors were encountered: