From 5c2e02eb8f8e63548930447c81cf9e06dbe9ed7a Mon Sep 17 00:00:00 2001 From: Dennis Chen Date: Fri, 5 Jan 2018 03:13:24 +0000 Subject: [PATCH] Removal of TEST_IMAGE_NAMESPACE We don't need the test image namespace anymore since we've already upgrade those images to the latest multi-arch ones. Signed-off-by: Dennis Chen Upstream-commit: 662bdb4a5638e56d78e66bb2cb5d7a4a751135c9 Component: engine --- components/engine/hack/make/.detect-daemon-osarch | 6 +----- components/engine/hack/make/.integration-test-helpers | 1 - components/engine/integration-cli/fixtures/load/frozen.go | 4 ---- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/components/engine/hack/make/.detect-daemon-osarch b/components/engine/hack/make/.detect-daemon-osarch index 7376c1d855..c472710d17 100644 --- a/components/engine/hack/make/.detect-daemon-osarch +++ b/components/engine/hack/make/.detect-daemon-osarch @@ -53,7 +53,6 @@ esac export PACKAGE_ARCH DOCKERFILE='Dockerfile' -TEST_IMAGE_NAMESPACE= case "$PACKAGE_ARCH" in amd64) case "${DOCKER_ENGINE_GOOS:-$DOCKER_CLIENT_GOOS}" in @@ -64,9 +63,6 @@ case "$PACKAGE_ARCH" in ;; *) DOCKERFILE="Dockerfile.$PACKAGE_ARCH" - if [ "$PACKAGE_ARCH" != "aarch64" ]; then - TEST_IMAGE_NAMESPACE="$PACKAGE_ARCH" - fi ;; esac -export DOCKERFILE TEST_IMAGE_NAMESPACE +export DOCKERFILE diff --git a/components/engine/hack/make/.integration-test-helpers b/components/engine/hack/make/.integration-test-helpers index abd1d0f305..3b1326dee0 100644 --- a/components/engine/hack/make/.integration-test-helpers +++ b/components/engine/hack/make/.integration-test-helpers @@ -99,7 +99,6 @@ test_env() { HOME="$ABS_DEST/fake-HOME" \ PATH="$PATH" \ TEMP="$TEMP" \ - TEST_IMAGE_NAMESPACE="$TEST_IMAGE_NAMESPACE" \ TEST_CLIENT_BINARY="$TEST_CLIENT_BINARY" \ "$@" ) diff --git a/components/engine/integration-cli/fixtures/load/frozen.go b/components/engine/integration-cli/fixtures/load/frozen.go index 4bec323b51..7b91fecd93 100644 --- a/components/engine/integration-cli/fixtures/load/frozen.go +++ b/components/engine/integration-cli/fixtures/load/frozen.go @@ -26,7 +26,6 @@ const frozenImgDir = "/docker-frozen-images" // images were passed in. If the images need to be downloaded, then it will respect // the passed in images func FrozenImagesLinux(client client.APIClient, images ...string) error { - imgNS := os.Getenv("TEST_IMAGE_NAMESPACE") var loadImages []struct{ srcName, destName string } for _, img := range images { if !imageExists(client, img) { @@ -38,9 +37,6 @@ func FrozenImagesLinux(client client.APIClient, images ...string) error { if img == "hello-world:frozen" { srcName = "hello-world:latest" } - if imgNS != "" { - srcName = imgNS + "/" + srcName - } loadImages = append(loadImages, struct{ srcName, destName string }{ srcName: srcName, destName: img,