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

[Flow Aggregator] Determine bucket region in S3 uploader #4237

Merged

Conversation

antoninbas
Copy link
Contributor

We determine the region programmatically in the S3 uploader, using the region "hint" provided in the config.
Before this change, there was a mismatch between the description of the "region" config parameter and its actual implementation in the S3 uploader.

Signed-off-by: Antonin Bas [email protected]

@codecov
Copy link

codecov bot commented Sep 19, 2022

Codecov Report

Merging #4237 (f9036b2) into main (0d98ab1) will decrease coverage by 1.87%.
The diff coverage is 31.81%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4237      +/-   ##
==========================================
- Coverage   64.36%   62.49%   -1.88%     
==========================================
  Files         361      385      +24     
  Lines       52188    54471    +2283     
==========================================
+ Hits        33592    34041     +449     
- Misses      16147    17941    +1794     
- Partials     2449     2489      +40     
Flag Coverage Δ
e2e-tests 39.43% <ø> (?)
integration-tests 34.91% <ø> (+0.08%) ⬆️
kind-e2e-tests 48.55% <4.54%> (-0.42%) ⬇️
unit-tests 43.81% <27.27%> (-1.25%) ⬇️
Impacted Files Coverage Δ
pkg/flowaggregator/s3uploader/s3uploader.go 85.75% <28.57%> (-4.08%) ⬇️
...lowaggregator/clickhouseclient/clickhouseclient.go 80.41% <100.00%> (-0.21%) ⬇️
pkg/agent/cniserver/ipam/ipam_service.go 76.40% <0.00%> (-12.36%) ⬇️
...g/agent/controller/serviceexternalip/controller.go 69.96% <0.00%> (-9.22%) ⬇️
pkg/agent/proxy/topology.go 72.72% <0.00%> (-9.10%) ⬇️
pkg/apiserver/certificate/certificate.go 70.37% <0.00%> (-6.49%) ⬇️
pkg/controller/networkpolicy/tier.go 50.00% <0.00%> (-5.00%) ⬇️
pkg/agent/controller/networkpolicy/packetin.go 72.29% <0.00%> (-4.06%) ⬇️
pkg/agent/openflow/service.go 88.04% <0.00%> (-3.27%) ⬇️
...agent/flowexporter/connections/deny_connections.go 87.09% <0.00%> (-3.23%) ⬇️
... and 56 more

We determine the region programmatically in the S3 uploader, using the
region "hint" provided in the config.
Before this change, there was a mismatch between the description of the
"region" config parameter and its actual implementation in the S3
uploader.

Signed-off-by: Antonin Bas <[email protected]>
@antoninbas antoninbas force-pushed the fa-s3-uploader-determine-bucket-region branch from b5b6cde to f9036b2 Compare September 19, 2022 23:27
Copy link
Contributor

@heanlan heanlan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing it. LGTM

@antoninbas
Copy link
Contributor Author

/test-all

@antoninbas antoninbas merged commit 4caa8c1 into antrea-io:main Sep 20, 2022
@antoninbas antoninbas deleted the fa-s3-uploader-determine-bucket-region branch September 20, 2022 16:58
heanlan pushed a commit to heanlan/antrea that referenced this pull request Mar 29, 2023
)

We determine the region programmatically in the S3 uploader, using the
region "hint" provided in the config.
Before this change, there was a mismatch between the description of the
"region" config parameter and its actual implementation in the S3
uploader.

Signed-off-by: Antonin Bas <[email protected]>
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.

2 participants