-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider/aws: Add support S3 Object Lifecycle Rule #6220
Conversation
Sorry, I forgot to check for the vet command. |
<3 |
if len(lifecycle.Rules) > 0 { | ||
rules := make([]map[string]interface{}, 0, len(lifecycle.Rules)) | ||
|
||
for _, lifecycleRule := range lifecycle.Rules { |
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.
Is there a chance any of these dereferenced properties may not exist? If so then, when dereferencing, we will get a panic
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.
These should basically exists in response, but I added check code just in case.
just a quick point here - when I was building the Azure provider - 3 levels of nesting sometimes gave some interesting results. So we need to keep an eye on this :) |
Semantics look fantastic! Thank you! |
@stack72
I'm sorry, I don't understand. |
Hi @kjmkznr Ignore my comments about the nesting - it's not an issue. BUT when i run all of the S3 bucket tests, I now see the following:
|
I forgat check other acceptance tests. |
Hi @kjmkznr this looks great now - thanks so much for the fix on the 404! The new test run confirmed it worked as expected:
Thanks again :) Paul |
Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This pull request adds S3 object lifecycle management configuration.
Acceptance test