-
Notifications
You must be signed in to change notification settings - Fork 370
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
Create all FlowExporter resources in a function #2829
Comments
This is not a major change that warrants an issue IMO. Please open a PR directly or have a TODO in the code in your next PR. |
Got it. I thought issue can be used as a TODO, now be more aware of the usage of issues. Thanks! |
It's fine to open an issue if you are not sure sure about the change (and wants to discuss it) or if you don't have time to tackle it in the near future. |
Got it. Thanks Antonin. |
There is a problem - if we want to create all the resources in a function under Do we have any solutions to handle the import cycle problems? @antoninbas @srikartati |
How can |
I'm thinking we can declare |
I think as a first step, combining priority queue and connection store initializations separately for denyConnStore and conntrackConnStore is better. You could try placing those in the connections package. |
Yes, the first step makes a lot of sense. I have done that in the PR. |
Describe what you are trying to solve
In
antrea/cmd/antrea-agent/agent.go
, we createdenyConnStore
,conntrackConnStore
,flowExporter
separately. We can try to have a function inflowexporter
package to create all theflowexporter
resources. Reference to: #2360 (comment)Describe the solution you have in mind
As there are a lot of variables required by
NewConntrackConnectionStore()
,NewFlowExporter()
, we might consider to group some of the variables, in order to avoid to pass too many parameters to the creating-resources function.The text was updated successfully, but these errors were encountered: