mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 20:42:26 +00:00
Read the VERSIONS file for the FEDERATION_IMAGE_TAG value.
This is particularly important in the local builds where there is no $KUBERNETES_RELEASE defined.
This commit is contained in:
parent
6e268e6f83
commit
41468fb312
@ -82,6 +82,10 @@ if [[ "${USE_KUBEFED}" == "true" ]]; then
|
|||||||
init
|
init
|
||||||
create_cluster_secrets
|
create_cluster_secrets
|
||||||
else
|
else
|
||||||
export FEDERATION_IMAGE_TAG="$(echo ${KUBERNETES_RELEASE:-} | tr + _)"
|
# Read the version back from the versions file if no version is given.
|
||||||
|
readonly kube_version="$(cat ${KUBE_ROOT}/_output/federation/versions | python -c '\
|
||||||
|
import json, sys;\
|
||||||
|
print json.load(sys.stdin)["KUBE_VERSION"]')"
|
||||||
|
export FEDERATION_IMAGE_TAG="$(echo ${KUBERNETES_RELEASE:-${kube_version}} | tr + _)"
|
||||||
create-federation-api-objects
|
create-federation-api-objects
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user