mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #92668 from michaelmdresser/fix-kubeup-acls-mb
Fix an unnecessary failure during kube-up during bucket ACL setting and make bucket in the configured project
This commit is contained in:
commit
adf2cd40ae
@ -241,7 +241,7 @@ function copy-to-staging() {
|
||||
|
||||
echo "${hash}" > "${tar}.sha1"
|
||||
gsutil -m -q -h "Cache-Control:private, max-age=0" cp "${tar}" "${tar}.sha1" "${staging_path}"
|
||||
gsutil -m acl ch -g all:R "${gs_url}" "${gs_url}.sha1" >/dev/null 2>&1
|
||||
gsutil -m acl ch -g all:R "${gs_url}" "${gs_url}.sha1" >/dev/null 2>&1 || true
|
||||
echo "+++ ${basename_tar} uploaded (sha1 = ${hash})"
|
||||
}
|
||||
|
||||
@ -338,7 +338,7 @@ function upload-tars() {
|
||||
# Ensure the buckets are created
|
||||
if ! gsutil ls "${staging_bucket}" >/dev/null; then
|
||||
echo "Creating ${staging_bucket}"
|
||||
gsutil mb -l "${region}" "${staging_bucket}"
|
||||
gsutil mb -l "${region}" -p "${PROJECT}" "${staging_bucket}"
|
||||
fi
|
||||
|
||||
local staging_path="${staging_bucket}/${INSTANCE_PREFIX}-devel"
|
||||
|
Loading…
Reference in New Issue
Block a user