Use INSTANCE_PREFIX to prefix uploaded binaries in GCE, fixes #8705

This commit is contained in:
Isaac Hollander McCreery
2016-01-22 15:27:33 -08:00
parent 0b00928c74
commit 9477bc08a5
2 changed files with 1 additions and 7 deletions

View File

@@ -36,10 +36,6 @@ ALLOCATE_NODE_CIDRS=true
KUBE_PROMPT_FOR_UPDATE=y
KUBE_SKIP_UPDATE=${KUBE_SKIP_UPDATE-"n"}
# Suffix to append to the staging path used for the server tars. Useful if
# multiple versions of the server are being used in the same project
# simultaneously (e.g. on Jenkins).
KUBE_GCS_STAGING_PATH_SUFFIX=${KUBE_GCS_STAGING_PATH_SUFFIX-""}
# How long (in seconds) to wait for cluster initialization.
KUBE_CLUSTER_INITIALIZATION_TIMEOUT=${KUBE_CLUSTER_INITIALIZATION_TIMEOUT:-300}
@@ -201,7 +197,7 @@ function upload-server-tars() {
gsutil mb "${staging_bucket}"
fi
local -r staging_path="${staging_bucket}/devel${KUBE_GCS_STAGING_PATH_SUFFIX}"
local -r staging_path="${staging_bucket}/${INSTANCE_PREFIX}-devel"
SERVER_BINARY_TAR_HASH=$(sha1sum-file "${SERVER_BINARY_TAR}")
SALT_TAR_HASH=$(sha1sum-file "${SALT_TAR}")