-
Notifications
You must be signed in to change notification settings - Fork 86
Lifecycle changes - Allow all actions in put lifecycle configuration #8424
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
c47acef
to
c6de06b
Compare
43270f2
to
fcf3e1d
Compare
dbg.error('ExpiredObjectDeleteMarker is not implemented, expiration:', expiration); | ||
throw new S3Error(S3Error.NotImplemented); | ||
expiration.ExpiredObjectDeleteMarker.length === 1 && | ||
(/true/i).test(expiration.ExpiredObjectDeleteMarker[0])) { |
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.
worth putting the regexp in the global scope? due to #7110
if (rule.Transition) { | ||
dbg.error('Transition is not implemented, rule:', rule); | ||
throw new S3Error(S3Error.NotImplemented); | ||
if (rule.AbortIncompleteMultipartUpload && rule.AbortIncompleteMultipartUpload.length === 1) { |
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.
style, maybe worth in all the conditions make the conditions easier to read by using ? check -
if (rule?.AbortIncompleteMultipartUpload.length === 1)
throw new S3Error(S3Error.NotImplemented); | ||
|
||
|
||
if (rule.Expiration && rule.Expiration.length === 1) { |
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.
expiration is still required in the schema, we probably want to remove it if it's not required anymore
same for filter
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.
Filter is still required. I will remove expiration. thanks
387380b
to
84a7a68
Compare
* although not all of the actions are implemented in the lifecycle bg worker, we still want to store the provided configuration and not fail it * in NC case, the lifecycle work is performed outside of noobaa, so we want to provide all fields * In addition, for now, allow passing the deprecated Prefix field. This commit leaves a gap regarding validation of the configuration, which should be more aligned with what AWS allows Signed-off-by: Danny Zaken <[email protected]>
84a7a68
to
524869f
Compare
Explain the changes
Issues: Fixed #xxx / Gap #xxx
Testing Instructions: