-
Notifications
You must be signed in to change notification settings - Fork 170
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
cmd-buildupload: Add flag for s3 server selection #2678
Conversation
Hi @wranders. Thanks for your PR. I'm waiting for a coreos member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
It's a bit ridiculous to me that boto/boto3#2746 hasn't merged yet. |
/ok-to-test |
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.
LGTM, but also tagging in @jlebon for a lookover.
It seems like in a future iteration of this we could just create the boto client (s3 = boto3.client()..
) at a higher level and pass down that object rather than all of the options.
My thoughts exactly. But after all this time, this seems to be the route AWS wants to go.
I could get on that if you'd like. |
Let's see what @jlebon's opinion is before you do any work. Thanks for offering. |
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.
Thanks for the patch! Some minor comments but makes sense to me overall. Also good with the client rework mentioned above, though maybe let's do that in a separate PR instead?
Could you squash your indentation fix commits into the first commit?
For the commit title, s/Added/add/
. And can you add what you wrote in the first PR comment as part of the commit body?
518ba2e
to
2442ff5
Compare
Changes made and squashed. Should be good to go now. |
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.
LGTM
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 like the commit title lost the cmd-buildupload:
prefix. Maybe cmd-buildupload: add --endpoint-url S3 flag
?
Otherwise, LGTM!
Added `--endpoint-url` as an `s3` sub-command flag under the `buildupload` command. This allows `buildupload` to use non-AWS storage servers like Minio. Useful for local development or environments where AWS S3 doesn't fit.
2442ff5
to
fbc6f4c
Compare
🤦♂️ Let's try this again... lol |
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.
Thanks!
Added
--endpoint-url
as ans3
sub-command flag under thebuildupload
command.This allows
buildupload
to use non-AWS storage servers like Minio. Useful for local development or environments where AWS S3 doesn't fit.Tested with local external Minio server and credentials loaded automatically by
boto3
client.