Commit c8ad7720 authored by Daniel Smith's avatar Daniel Smith

Merge pull request #6615 from brendandburns/hash

We have had user reports that look like hash conflicts. Expand the hash to 10 digits.
parents 6836b527 5df4d927
...@@ -136,7 +136,9 @@ function upload-server-tars() { ...@@ -136,7 +136,9 @@ function upload-server-tars() {
else else
project_hash=$(echo -n "$PROJECT" | md5sum | awk '{ print $1 }') project_hash=$(echo -n "$PROJECT" | md5sum | awk '{ print $1 }')
fi fi
project_hash=${project_hash:0:5} # This requires 1 million projects before the probability of collision is 50%
# that's probably good enough for now :P
project_hash=${project_hash:0:10}
local -r staging_bucket="gs://kubernetes-staging-${project_hash}" local -r staging_bucket="gs://kubernetes-staging-${project_hash}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment