mirror of https://github.com/kubernetes/kops.git
Merge pull request #9672 from srikiz/DO-upload-to-spaces
[Digital Ocean] Upload binaries to DO Spaces
This commit is contained in:
commit
b6f4307231
|
|
@ -35,5 +35,11 @@ if [[ "${DEST:0:6}" == "oss://" ]]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
if [[ "${DEST:0:5}" == "do://" ]]; then
|
||||
DO_BUCKET=`echo "${DEST}" | cut -c 6-`
|
||||
s3cmd put "*" ${SRC}/ s3://$DO_BUCKET --recursive ${PUBLIC:+--acl-public}
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Unsupported destination - supports s3://, gs:// and oss:// urls: ${DEST}"
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue