Commit ea5f41e7 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #40168 from madhusudancs/fed-image-tag-intermediate

Automatic merge from submit-queue (batch tested with PRs 40168, 40165, 39158, 39966, 40190) 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. cc @kubernetes/sig-federation-misc @shashidharatd
parents 4f8f6006 41468fb3
...@@ -82,6 +82,10 @@ if [[ "${USE_KUBEFED}" == "true" ]]; then ...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment