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

S3 CSI Addon - Support multiple buckets #1114

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

usmanatron
Copy link
Contributor

@usmanatron usmanatron commented Feb 11, 2025

Issue #, if available:

None

Description of changes:

Tweak the new S3 CSI Addon so it supports multiple S3 buckets. Looking at the CSI Driver itself, it does support multiple bucket; it's just the Service Account creation here which is currently constrained to a single bucket name.

One thing I'm not sure on is how this changes the Props object - it means consumers will have to change their usage. I could instead make s3BucketNames a string | string[] to handle this, but I'm not sure if its worth the effort. What are your thoughts?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@usmanatron usmanatron changed the title S3 addon buckets S3 CSI Addon - Support multiple buckets Feb 11, 2025
@usmanatron usmanatron marked this pull request as ready for review February 11, 2025 15:16
Copy link
Collaborator

@shapirov103 shapirov103 left a comment

Choose a reason for hiding this comment

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

@usmanatron thank you for the contribution!

The change makes sense. The only concern is that it is a breaking change, so I will have to put it into 1.17 release and put a note on it. It is nothing major, but will require customers to apply a code fix if they are already using this addon.

*/
s3BucketName: string;
s3BucketNames: string[];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Minor: since it is an s3-csi-driver, s3 is redundant in the names. If we are changing the names, let's make it just bucketNames.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@shapirov103
Copy link
Collaborator

@jesperalmstrom FYI ^^

Copy link
Collaborator

@shapirov103 shapirov103 left a comment

Choose a reason for hiding this comment

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

Looks good, let me run the tests

@shapirov103
Copy link
Collaborator

/do-e2e-tests

Copy link

@aws-ia-ci aws-ia-ci left a comment

Choose a reason for hiding this comment

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

end to end tests passed

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.

3 participants