-
Notifications
You must be signed in to change notification settings - Fork 208
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
base: main
Are you sure you want to change the base?
Conversation
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.
@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.
lib/addons/s3-csi-driver/index.ts
Outdated
*/ | ||
s3BucketName: string; | ||
s3BucketNames: string[]; |
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.
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
.
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!
@jesperalmstrom FYI ^^ |
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.
Looks good, let me run the tests
/do-e2e-tests |
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.
end to end tests passed
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.