From 5df4d927b98f69ad108a932e1cfe52be9b2ed053 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Wed, 8 Apr 2015 21:51:50 -0700 Subject: [PATCH] We have had user reports that look like hash conflicts. Expand the has to 10 digits. --- cluster/gce/util.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index c15631fccfd..52bbb69156f 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -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}"