mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 14:45:28 +00:00
Allow customize registry name of base and release images
default behavior does not change, it uses k8s.gcr.io by default added two vars: KUBE_DOCKER_REGISTRY, KUBE_BASE_IMAGE_REGISTRY. KUBE_BASE_IMAGE_REGISTRY is for base image registry of server binaries KUBE_DOCKER_REGISTRY is for released images registry user can interact with them by: `KUBE_DOCKER_REGISTRY=### KUBE_BASE_IMAGE_REGISTRY=### make quick-release` Signed-off-by: Hui Luo <luoh@vmware.com>
This commit is contained in:
@@ -337,7 +337,7 @@ function kube::release::create_docker_images_for_server() {
|
||||
local images_dir="${RELEASE_IMAGES}/${arch}"
|
||||
mkdir -p "${images_dir}"
|
||||
|
||||
local -r docker_registry="k8s.gcr.io"
|
||||
local -r docker_registry="${KUBE_DOCKER_REGISTRY}"
|
||||
# Docker tags cannot contain '+'
|
||||
local docker_tag="${KUBE_GIT_VERSION/+/_}"
|
||||
if [[ -z "${docker_tag}" ]]; then
|
||||
|
Reference in New Issue
Block a user