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

Add support for 'Prefix' field in Bucket Spec #129

Merged
merged 5 commits into from
Jan 9, 2024
Merged

Conversation

nolancon
Copy link
Collaborator

@nolancon nolancon commented Jan 8, 2024

Description of your changes

Although this field is deprecated, we still wish to support it as it is required by GetBucketLifecycle v1

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Updated unit test for generating LC policy

@nolancon nolancon requested review from mhmxs and Shunpoco January 8, 2024 11:47
Copy link
Collaborator

@Shunpoco Shunpoco left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -79,6 +79,10 @@ type LifecycleRule struct {
// Specifies when an Amazon S3 object transitions to a specified storage class.
// +optional
Transitions []Transition `json:"transitions,omitempty"`

// Prefix identifying one or more objects to which the rule applies.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you add a comment that Prefix is deprecated and why we still support it?

@nolancon nolancon merged commit 31f7709 into main Jan 9, 2024
9 checks passed
@nolancon nolancon deleted the prefix-support branch January 9, 2024 10:26
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