-
Notifications
You must be signed in to change notification settings - Fork 387
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
Combine FlowExporter resources initialization in agent.go #2854
Conversation
eae1ae8
to
e457340
Compare
Codecov Report
@@ Coverage Diff @@
## main #2854 +/- ##
===========================================
+ Coverage 40.61% 61.65% +21.04%
===========================================
Files 158 283 +125
Lines 19906 23830 +3924
===========================================
+ Hits 8084 14693 +6609
+ Misses 11050 7567 -3483
- Partials 772 1570 +798
Flags with carried forward coverage won't be shown. Click here to find out more.
|
e457340
to
245c9d0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I think current function calls are similar to calls with other packages in agent.go.
245c9d0
to
84a410c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I was hoping for more changes. Why don't we have a unique initialization function for the connection store and the flow exporter?
Thanks Antonin. |
@heanlan No I don't think we want that last commit, we should keep things symmetric |
Thanks @antoninbas. Looked into the code more closely. Having a setter in the network policy controller is definitely doable. However, it is better to break the initialization of connection stores and the exporter, and their |
All goroutines are created at the end of the initialization function |
Yes, Flow Exporter pkg structures are being initialized along with the creation of goroutines right now. I just meant that we can modify and follow the similar style as other packages. Then we will have two groups: initialization of structures along with the setter and goroutines creation. |
271f814
to
49a812a
Compare
Thanks Antonin and Srikar. In the latest commit, I have
To make the separation more consistent, shall I move the initialization of |
I think it is a small change and ok to do in this PR--you may have to change the title and description. Another option is doing it in a separate PR so that it can be reviewed by others. I am ok with either way and do not have a strong opinion. |
b7c2691
to
938c319
Compare
Thanks Srikar. I tried to do the changes in the latest commit. It seems involved in a lot of windows CI failures... I've already been blocked by the go import error for hours https://github.com/antrea-io/antrea/runs/3819830137?check_suite_focus=true |
938c319
to
0f18b58
Compare
0f18b58
to
a9b8309
Compare
Could you please take another look on this PR @antoninbas @srikartati ? Thanks a lot! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
075b6d8
to
ee57e6f
Compare
squashed the commits |
/test-all |
ee57e6f
to
eb4c248
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one nit, otherwise LGTM
eb4c248
to
80cad1b
Compare
@heanlan @antoninbas @srikartati do we plan to include it in v1.4? |
80cad1b
to
ffa2c55
Compare
I have resolved the conflicts. It's not urgent to be included in 1.4. But if there's no more comments, I think it's ready to be merged. |
/test-all |
the test failures will be fixed by #2968 |
Signed-off-by: heanlan <hanlan@vmware.com>
ffa2c55
to
4443094
Compare
/test-all |
denyConnStore
into thenetworkPolicyController
Fixed: #2829
Signed-off-by: heanlan hanlan@vmware.com