-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Storage: Fix Bucket logging configuration using library #6327
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6327 +/- ##
============================================
- Coverage 46.85% 46.3% -0.56%
+ Complexity 28120 27924 -196
============================================
Files 2601 2613 +12
Lines 287258 287669 +411
Branches 33359 33739 +380
============================================
- Hits 134595 133199 -1396
- Misses 142429 144263 +1834
+ Partials 10234 10207 -27
Continue to review full report at Codecov.
|
@frankyn PTAL. |
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.
Small nits.
storage.create( | ||
BucketInfo.newBuilder(logsBucket) | ||
.setLocation("us") | ||
.setRetentionPeriod(RETENTION_PERIOD) |
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.
Remove retention period from new bucket.
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.
Done
.setLocation("us") | ||
.setRetentionPeriod(RETENTION_PERIOD) | ||
.build())); | ||
Acl acl = Acl.of(User.ofAllAuthenticatedUsers(), Role.WRITER); |
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.
Use IAM policy instead.
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.
Done.
Fixes #2911