mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Merge pull request #83924 from javier-b-perez/release-lib
release: lib: revert docker_registry to constant k8s.gcr.io
This commit is contained in:
commit
cbd0d4ab6e
@ -309,7 +309,10 @@ function kube::release::create_docker_images_for_server() {
|
|||||||
local images_dir="${RELEASE_IMAGES}/${arch}"
|
local images_dir="${RELEASE_IMAGES}/${arch}"
|
||||||
mkdir -p "${images_dir}"
|
mkdir -p "${images_dir}"
|
||||||
|
|
||||||
local -r docker_registry="${KUBE_DOCKER_REGISTRY}"
|
# k8s.gcr.io is the constant tag in the docker archives, this is also the default for config scripts in GKE.
|
||||||
|
# We can use KUBE_DOCKER_REGISTRY to include and extra registry in the docker archive.
|
||||||
|
# If we use KUBE_DOCKER_REGISTRY="k8s.gcr.io", then the extra tag (same) is ignored, see release_docker_image_tag below.
|
||||||
|
local -r docker_registry="k8s.gcr.io"
|
||||||
# Docker tags cannot contain '+'
|
# Docker tags cannot contain '+'
|
||||||
local docker_tag="${KUBE_GIT_VERSION/+/_}"
|
local docker_tag="${KUBE_GIT_VERSION/+/_}"
|
||||||
if [[ -z "${docker_tag}" ]]; then
|
if [[ -z "${docker_tag}" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user