mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
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.
This commit is contained in:
parent
722c8b065a
commit
709d43edac
@ -40,11 +40,13 @@ HOST_CLUSTER_CONTEXT="${FEDERATION_HOST_CLUSTER_CONTEXT:-${1}}"
|
|||||||
# Initializes the control plane.
|
# Initializes the control plane.
|
||||||
# TODO(madhusudancs): Move this to federation/develop.sh.
|
# TODO(madhusudancs): Move this to federation/develop.sh.
|
||||||
function init() {
|
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}"
|
kube::log::status "Deploying federation control plane for ${FEDERATION_NAME} in cluster ${HOST_CLUSTER_CONTEXT}"
|
||||||
|
|
||||||
local -r project="${KUBE_PROJECT:-${PROJECT:-}}"
|
local -r project="${KUBE_PROJECT:-${PROJECT:-}}"
|
||||||
local -r kube_registry="${KUBE_REGISTRY:-gcr.io/${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 \
|
"${KUBE_ROOT}/federation/develop/kubefed.sh" init \
|
||||||
"${FEDERATION_NAME}" \
|
"${FEDERATION_NAME}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user