mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Add env variable to build federation images locally. #39870
This commit is contained in:
parent
ff67d8218e
commit
60726da4ff
@ -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:-}"
|
||||||
|
Loading…
Reference in New Issue
Block a user