mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Merge pull request #40809 from rrati/federation-build-local
Automatic merge from submit-queue (batch tested with PRs 40884, 40809, 40845, 40866, 40875) Add env variable to build federation images locally. #39870 This allows building the federation images without the need for cloud development packages Related: #39870
This commit is contained in:
commit
c82b8f3833
@ -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