Uses the resource-consumer/controller image instead of resource-consumer-controller

Dockerhub does not support slashes in the image names, so when the tests are
configured to use a dockerhub registry instead of the current
gcr.io/kubernetes-e2e-test-images registry, the tests using the mentioned image
will fail, as the image cannot exist and cannot be pulled.
This commit is contained in:
Claudiu Belu 2019-03-05 03:00:15 -08:00
parent bf4e93da57
commit 53df13ac22
9 changed files with 5 additions and 5 deletions

View File

@ -31,6 +31,7 @@ filegroup(
"//test/images/port-forward-tester:all-srcs", "//test/images/port-forward-tester:all-srcs",
"//test/images/porter:all-srcs", "//test/images/porter:all-srcs",
"//test/images/resource-consumer:all-srcs", "//test/images/resource-consumer:all-srcs",
"//test/images/resource-consumer-controller:all-srcs",
"//test/images/sample-apiserver:all-srcs", "//test/images/sample-apiserver:all-srcs",
"//test/images/sample-device-plugin:all-srcs", "//test/images/sample-device-plugin:all-srcs",
"//test/images/serve-hostname:all-srcs", "//test/images/serve-hostname:all-srcs",

View File

@ -14,7 +14,7 @@ go_binary(
go_library( go_library(
name = "go_default_library", name = "go_default_library",
srcs = ["controller.go"], srcs = ["controller.go"],
importpath = "k8s.io/kubernetes/test/images/resource-consumer/controller", importpath = "k8s.io/kubernetes/test/images/resource-consumer-controller",
deps = ["//test/images/resource-consumer/common:go_default_library"], deps = ["//test/images/resource-consumer/common:go_default_library"],
) )

View File

@ -16,10 +16,10 @@ SRCS=controller
ARCH ?= amd64 ARCH ?= amd64
TARGET ?= $(CURDIR) TARGET ?= $(CURDIR)
GOLANG_VERSION ?= latest GOLANG_VERSION ?= latest
SRC_DIR = resource-consumer/$(notdir $(shell pwd)) SRC_DIR = $(notdir $(shell pwd))
export export
bin: bin:
../../image-util.sh bin $(SRCS) ../image-util.sh bin $(SRCS)
.PHONY: bin .PHONY: bin

View File

@ -35,7 +35,6 @@ filegroup(
":package-srcs", ":package-srcs",
"//test/images/resource-consumer/common:all-srcs", "//test/images/resource-consumer/common:all-srcs",
"//test/images/resource-consumer/consume-cpu:all-srcs", "//test/images/resource-consumer/consume-cpu:all-srcs",
"//test/images/resource-consumer/controller:all-srcs",
], ],
tags = ["automanaged"], tags = ["automanaged"],
) )

View File

@ -234,7 +234,7 @@ func initImageConfigs() map[int]Config {
configs[PortForwardTester] = Config{e2eRegistry, "port-forward-tester", "1.0"} configs[PortForwardTester] = Config{e2eRegistry, "port-forward-tester", "1.0"}
configs[Redis] = Config{e2eRegistry, "redis", "1.0"} configs[Redis] = Config{e2eRegistry, "redis", "1.0"}
configs[ResourceConsumer] = Config{e2eRegistry, "resource-consumer", "1.5"} configs[ResourceConsumer] = Config{e2eRegistry, "resource-consumer", "1.5"}
configs[ResourceController] = Config{e2eRegistry, "resource-consumer/controller", "1.0"} configs[ResourceController] = Config{e2eRegistry, "resource-consumer-controller", "1.0"}
configs[ServeHostname] = Config{e2eRegistry, "serve-hostname", "1.1"} configs[ServeHostname] = Config{e2eRegistry, "serve-hostname", "1.1"}
configs[TestWebserver] = Config{e2eRegistry, "test-webserver", "1.0"} configs[TestWebserver] = Config{e2eRegistry, "test-webserver", "1.0"}
configs[VolumeNFSServer] = Config{e2eRegistry, "volume/nfs", "1.0"} configs[VolumeNFSServer] = Config{e2eRegistry, "volume/nfs", "1.0"}