From 709d43edac8d155b1af2b3df65ff8260b8a657d5 Mon Sep 17 00:00:00 2001 From: "Madhusudan.C.S" Date: Mon, 30 Jan 2017 11:55:30 -0800 Subject: [PATCH] Replace + with _ in the image tag version since + is not a valid image tag character. We already push the image to the registry by replacing + with _ in the previous build and push stage. This change is just propagating the same to the deploy stage. --- federation/cluster/federation-up.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/federation/cluster/federation-up.sh b/federation/cluster/federation-up.sh index 6d2c9ba5747..f279a28b938 100755 --- a/federation/cluster/federation-up.sh +++ b/federation/cluster/federation-up.sh @@ -40,11 +40,13 @@ HOST_CLUSTER_CONTEXT="${FEDERATION_HOST_CLUSTER_CONTEXT:-${1}}" # Initializes the control plane. # TODO(madhusudancs): Move this to federation/develop.sh. function init() { + : "${KUBERNETES_RELEASE?KUBERNETES_RELEASE environment variable must be set}" + kube::log::status "Deploying federation control plane for ${FEDERATION_NAME} in cluster ${HOST_CLUSTER_CONTEXT}" local -r project="${KUBE_PROJECT:-${PROJECT:-}}" local -r kube_registry="${KUBE_REGISTRY:-gcr.io/${project}}" - local -r kube_version="${KUBERNETES_RELEASE:-}" + local -r kube_version="${KUBERNETES_RELEASE//+/_}" "${KUBE_ROOT}/federation/develop/kubefed.sh" init \ "${FEDERATION_NAME}" \