mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Merge pull request #116222 from ameukam/remove-retention-policy
remove retention policy for staging buckets
This commit is contained in:
commit
a80b423351
@ -326,16 +326,17 @@ function upload-tars() {
|
|||||||
local node_binary_tar_urls=()
|
local node_binary_tar_urls=()
|
||||||
|
|
||||||
for region in "${PREFERRED_REGION[@]}"; do
|
for region in "${PREFERRED_REGION[@]}"; do
|
||||||
retention_period="1d" # https://cloud.google.com/storage/docs/bucket-lock#retention-periods
|
|
||||||
suffix="-${region}"
|
suffix="-${region}"
|
||||||
local staging_bucket="gs://kubernetes-staging-${project_hash}${suffix}"
|
local staging_bucket="gs://kubernetes-staging-${project_hash}${suffix}"
|
||||||
|
|
||||||
# Ensure the buckets are created
|
# Ensure the buckets are created
|
||||||
if ! gsutil ls "${staging_bucket}" >/dev/null; then
|
if ! gsutil ls "${staging_bucket}" >/dev/null; then
|
||||||
echo "Creating ${staging_bucket}"
|
echo "Creating ${staging_bucket}"
|
||||||
gsutil mb -l "${region}" -p "${PROJECT}" --retention "${retention_period}" "${staging_bucket}"
|
gsutil mb -l "${region}" -p "${PROJECT}" "${staging_bucket}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
gsutil retention clear "${staging_bucket}"
|
||||||
|
|
||||||
local staging_path="${staging_bucket}/${INSTANCE_PREFIX}-devel"
|
local staging_path="${staging_bucket}/${INSTANCE_PREFIX}-devel"
|
||||||
|
|
||||||
echo "+++ Staging tars to Google Storage: ${staging_path}"
|
echo "+++ Staging tars to Google Storage: ${staging_path}"
|
||||||
|
Loading…
Reference in New Issue
Block a user