-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Allow the S3 bucket name to be specified via AWS_S3_BUCKET #5376
Allow the S3 bucket name to be specified via AWS_S3_BUCKET #5376
Conversation
LGTM, but
|
1d9823c
to
bb622cc
Compare
Good point. I think we should probably have an options.md file or something like that, but for now I've taken your suggestion and put it into config-default.sh We don't want to actually set a default (non-empty) value though, because we want to generate a (pseudo) unique name unless the user takes responsibility for picking the bucket name (because bucket names are global across regions and users). |
bb622cc
to
26cf662
Compare
I fixed the merge-conflict here (not a real conflict, I had just changed adjacent lines). |
fi | ||
|
||
local -r staging_path="${staging_bucket}/devel" | ||
aws s3api put-bucket-acl --bucket ${AWS_S3_BUCKET} --acl public-read |
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.
This would undo #5377
Wow... I'm not doing very well here. Sorry & nice catch. Let me fix this one. I'm going to work on one patch at a time. Starting with this one! |
26cf662
to
3f71cc9
Compare
Ah, sorry about the delay here. I looked at it right after I got an email about your comment only to see that it still wasn't mergable. Looking again now. |
else | ||
project_hash=$(echo -n "${USER} ${key}" | md5sum | awk '{ print $1 }') | ||
fi | ||
AWS_S3_BUCKET="kubernetes-staging-${project_hash}/" |
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.
I don't think you want the slash on the end of the bucket name here, do you?
3f71cc9
to
e3e6c83
Compare
Thanks for the catch (again). I removed the extra trailing slash! |
Allow the S3 bucket name to be specified via AWS_S3_BUCKET
No description provided.