Commit 60726da4 authored by Robert Rati's avatar Robert Rati

Add env variable to build federation images locally. #39870

parent ff67d821
...@@ -43,10 +43,15 @@ readonly TMP_DIR="$(mktemp -d)" ...@@ -43,10 +43,15 @@ readonly TMP_DIR="$(mktemp -d)"
readonly FEDERATION_OUTPUT_ROOT="${LOCAL_OUTPUT_ROOT}/federation" readonly FEDERATION_OUTPUT_ROOT="${LOCAL_OUTPUT_ROOT}/federation"
readonly VERSIONS_FILE="${FEDERATION_OUTPUT_ROOT}/versions" readonly VERSIONS_FILE="${FEDERATION_OUTPUT_ROOT}/versions"
detect-project if [[ "${KUBERNETES_PROVIDER}" == "gke" || "${KUBERNETES_PROVIDER}" == "gce" ]]; then
readonly KUBE_PROJECT="${KUBE_PROJECT:-${PROJECT:-}}" detect-project
readonly KUBE_PROJECT="${KUBE_PROJECT:-${PROJECT:-}}"
readonly KUBE_REGISTRY="${KUBE_REGISTRY:-gcr.io/${KUBE_PROJECT}}"
else
readonly KUBE_PROJECT="${KUBE_PROJECT:-${PROJECT:-federation}}"
readonly KUBE_REGISTRY="${KUBE_REGISTRY:-localhost:5000/${KUBE_PROJECT}}"
fi
readonly KUBE_REGISTRY="${KUBE_REGISTRY:-gcr.io/${KUBE_PROJECT}}"
# In dev environments this value must be recomputed after build. See # In dev environments this value must be recomputed after build. See
# the build_image() function. So not making it readonly # the build_image() function. So not making it readonly
KUBE_VERSION="${KUBE_VERSION:-}" KUBE_VERSION="${KUBE_VERSION:-}"
......
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