mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Merge pull request #6615 from brendandburns/hash
We have had user reports that look like hash conflicts. Expand the hash to 10 digits.
This commit is contained in:
commit
c8ad77205c
@ -136,7 +136,9 @@ function upload-server-tars() {
|
||||
else
|
||||
project_hash=$(echo -n "$PROJECT" | md5sum | awk '{ print $1 }')
|
||||
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}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user