From 9b70ab1379c9699e4bc1894a7560522392c05941 Mon Sep 17 00:00:00 2001 From: Manjunath A Kumatagi Date: Mon, 12 Jun 2017 14:37:12 +0530 Subject: [PATCH 1/5] Multi Arch test images --- test/images/{hostexec => }/Makefile | 34 ++++-- test/images/clusterapi-tester/BASEIMAGE | 5 + test/images/clusterapi-tester/BUILD | 2 +- test/images/clusterapi-tester/Dockerfile | 6 +- test/images/clusterapi-tester/Makefile | 26 ++-- test/images/clusterapi-tester/NAME | 1 + test/images/clusterapi-tester/VERSION | 1 + .../{main.go => clusterapi-tester.go} | 0 test/images/dnsutils/BASEIMAGE | 4 + test/images/dnsutils/Dockerfile | 4 +- test/images/dnsutils/NAME | 1 + test/images/dnsutils/VERSION | 1 + test/images/entrypoint-tester/Makefile | 25 ++-- test/images/entrypoint-tester/NAME | 1 + test/images/entrypoint-tester/VERSION | 1 + test/images/fakegitserver/Dockerfile | 7 +- test/images/fakegitserver/Makefile | 28 ++--- test/images/fakegitserver/NAME | 1 + test/images/fakegitserver/VERSION | 1 + test/images/fakegitserver/prepare.sh | 26 ---- test/images/goproxy/Makefile | 25 ++-- test/images/goproxy/NAME | 1 + test/images/goproxy/VERSION | 1 + test/images/hostexec/BASEIMAGE | 4 + test/images/hostexec/Dockerfile | 6 +- test/images/hostexec/NAME | 1 + test/images/hostexec/VERSION | 1 + test/images/image-util.sh | 112 ++++++++++++++++++ test/images/iperf/BASEIMAGE | 4 + test/images/iperf/Dockerfile | 5 +- test/images/iperf/Makefile | 31 ----- test/images/iperf/NAME | 1 + test/images/iperf/VERSION | 1 + test/images/jessie-dnsutils/BASEIMAGE | 4 + test/images/jessie-dnsutils/Dockerfile | 4 +- test/images/jessie-dnsutils/Makefile | 27 ----- test/images/jessie-dnsutils/NAME | 1 + test/images/jessie-dnsutils/VERSION | 1 + test/images/logs-generator/BASEIMAGE | 4 + test/images/logs-generator/Dockerfile | 8 +- test/images/logs-generator/Makefile | 27 ++--- test/images/logs-generator/NAME | 1 + test/images/logs-generator/VERSION | 1 + test/images/mount-tester-user/BASEIMAGE | 5 + test/images/mount-tester-user/Dockerfile | 2 +- test/images/mount-tester-user/Makefile | 26 ---- test/images/mount-tester-user/NAME | 1 + test/images/mount-tester-user/VERSION | 1 + test/images/mount-tester/Dockerfile | 4 +- test/images/mount-tester/Makefile | 26 ++-- test/images/mount-tester/NAME | 1 + test/images/mount-tester/VERSION | 1 + test/images/n-way-http/BASEIMAGE | 5 + test/images/n-way-http/Dockerfile | 6 +- test/images/n-way-http/Makefile | 26 ++-- test/images/n-way-http/NAME | 1 + test/images/n-way-http/VERSION | 1 + test/images/net/BASEIMAGE | 4 + test/images/net/Dockerfile | 5 +- test/images/net/Makefile | 34 ++---- test/images/net/NAME | 1 + test/images/net/VERSION | 1 + test/images/netexec/BASEIMAGE | 5 + test/images/netexec/Dockerfile | 5 +- test/images/netexec/Makefile | 28 ++--- test/images/netexec/NAME | 1 + test/images/netexec/VERSION | 1 + test/images/network-tester/BUILD | 2 +- test/images/network-tester/Dockerfile | 4 +- test/images/network-tester/Makefile | 27 ++--- test/images/network-tester/NAME | 1 + test/images/network-tester/VERSION | 1 + .../{webserver.go => nettest.go} | 0 test/images/port-forward-tester/Makefile | 25 ++-- test/images/port-forward-tester/NAME | 1 + test/images/port-forward-tester/VERSION | 1 + test/images/porter/Makefile | 42 ++----- test/images/porter/NAME | 1 + test/images/porter/VERSION | 1 + test/images/resource-consumer/.gitignore | 3 + test/images/resource-consumer/BASEIMAGE | 4 + test/images/resource-consumer/Dockerfile | 8 +- test/images/resource-consumer/Makefile | 36 ++---- test/images/resource-consumer/NAME | 1 + test/images/resource-consumer/VERSION | 1 + .../resource-consumer/controller/BASEIMAGE | 5 + .../resource-consumer/controller/Dockerfile | 2 +- .../controller}/Makefile | 24 ++-- test/images/resource-consumer/controller/NAME | 1 + .../resource-consumer/controller/VERSION | 1 + test/images/serve_hostname/BASEIMAGE | 5 + test/images/serve_hostname/Dockerfile | 2 +- test/images/serve_hostname/Makefile | 91 ++------------ test/images/serve_hostname/NAME | 1 + test/images/serve_hostname/VERSION | 1 + 95 files changed, 449 insertions(+), 480 deletions(-) rename test/images/{hostexec => }/Makefile (53%) create mode 100644 test/images/clusterapi-tester/BASEIMAGE create mode 100644 test/images/clusterapi-tester/NAME create mode 100644 test/images/clusterapi-tester/VERSION rename test/images/clusterapi-tester/{main.go => clusterapi-tester.go} (100%) create mode 100644 test/images/dnsutils/BASEIMAGE create mode 100644 test/images/dnsutils/NAME create mode 100644 test/images/dnsutils/VERSION create mode 100644 test/images/entrypoint-tester/NAME create mode 100644 test/images/entrypoint-tester/VERSION create mode 100644 test/images/fakegitserver/NAME create mode 100644 test/images/fakegitserver/VERSION delete mode 100755 test/images/fakegitserver/prepare.sh create mode 100644 test/images/goproxy/NAME create mode 100644 test/images/goproxy/VERSION create mode 100644 test/images/hostexec/BASEIMAGE create mode 100644 test/images/hostexec/NAME create mode 100644 test/images/hostexec/VERSION create mode 100755 test/images/image-util.sh create mode 100644 test/images/iperf/BASEIMAGE delete mode 100644 test/images/iperf/Makefile create mode 100644 test/images/iperf/NAME create mode 100644 test/images/iperf/VERSION create mode 100644 test/images/jessie-dnsutils/BASEIMAGE delete mode 100644 test/images/jessie-dnsutils/Makefile create mode 100644 test/images/jessie-dnsutils/NAME create mode 100644 test/images/jessie-dnsutils/VERSION create mode 100644 test/images/logs-generator/BASEIMAGE create mode 100644 test/images/logs-generator/NAME create mode 100644 test/images/logs-generator/VERSION create mode 100644 test/images/mount-tester-user/BASEIMAGE delete mode 100644 test/images/mount-tester-user/Makefile create mode 100644 test/images/mount-tester-user/NAME create mode 100644 test/images/mount-tester-user/VERSION create mode 100644 test/images/mount-tester/NAME create mode 100644 test/images/mount-tester/VERSION create mode 100644 test/images/n-way-http/BASEIMAGE create mode 100644 test/images/n-way-http/NAME create mode 100644 test/images/n-way-http/VERSION create mode 100644 test/images/net/BASEIMAGE create mode 100644 test/images/net/NAME create mode 100644 test/images/net/VERSION create mode 100644 test/images/netexec/BASEIMAGE create mode 100644 test/images/netexec/NAME create mode 100644 test/images/netexec/VERSION create mode 100644 test/images/network-tester/NAME create mode 100644 test/images/network-tester/VERSION rename test/images/network-tester/{webserver.go => nettest.go} (100%) create mode 100644 test/images/port-forward-tester/NAME create mode 100644 test/images/port-forward-tester/VERSION create mode 100644 test/images/porter/NAME create mode 100644 test/images/porter/VERSION create mode 100644 test/images/resource-consumer/.gitignore create mode 100644 test/images/resource-consumer/BASEIMAGE create mode 100644 test/images/resource-consumer/NAME create mode 100644 test/images/resource-consumer/VERSION create mode 100644 test/images/resource-consumer/controller/BASEIMAGE rename test/images/{dnsutils => resource-consumer/controller}/Makefile (54%) create mode 100644 test/images/resource-consumer/controller/NAME create mode 100644 test/images/resource-consumer/controller/VERSION create mode 100644 test/images/serve_hostname/BASEIMAGE create mode 100644 test/images/serve_hostname/NAME create mode 100644 test/images/serve_hostname/VERSION diff --git a/test/images/hostexec/Makefile b/test/images/Makefile similarity index 53% rename from test/images/hostexec/Makefile rename to test/images/Makefile index 04b4008e4c2..9d5aeb5ebc5 100644 --- a/test/images/hostexec/Makefile +++ b/test/images/Makefile @@ -1,4 +1,4 @@ -# Copyright 2016 The Kubernetes Authors. +# Copyright 2017 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,19 +12,29 @@ # See the License for the specific language governing permissions and # limitations under the License. -.PHONY: all image push clean +REGISTRY ?= gcr.io/k8s-e2e-images +GOARM=7 +QEMUVERSION=v2.7.0 +GOLANG_VERSION=1.8.3 +export -TAG = 1.2 -PREFIX = gcr.io/google_containers +ifndef WHAT +$(error WHAT is a required variable, ex: make all WHAT=net) +endif +# Build code. +# +# Args: +# WHAT: Directory names to build. +# +# Example: +# make all WHAT=clusterapi-tester +all: all-container -all: push +all-container: + ./image-util.sh build $(WHAT) -image: - docker build --pull -t $(PREFIX)/hostexec:$(TAG) . +all-push: all-container + ./image-util.sh push $(WHAT) -push: image - gcloud docker -- push $(PREFIX)/hostexec:$(TAG) - -clean: - rm -f hostexec +.PHONY: all all-push all-container diff --git a/test/images/clusterapi-tester/BASEIMAGE b/test/images/clusterapi-tester/BASEIMAGE new file mode 100644 index 00000000000..44329aaa5b1 --- /dev/null +++ b/test/images/clusterapi-tester/BASEIMAGE @@ -0,0 +1,5 @@ +amd64=busybox +arm=arm32v6/busybox +arm64=arm64v8/busybox +ppc64le=ppc64le/busybox +s390x=s390x/busybox diff --git a/test/images/clusterapi-tester/BUILD b/test/images/clusterapi-tester/BUILD index 2e20ac80d0e..98c5c2c528c 100644 --- a/test/images/clusterapi-tester/BUILD +++ b/test/images/clusterapi-tester/BUILD @@ -16,7 +16,7 @@ go_binary( go_library( name = "go_default_library", - srcs = ["main.go"], + srcs = ["clusterapi-tester.go"], tags = ["automanaged"], deps = [ "//pkg/client/clientset_generated/internalclientset:go_default_library", diff --git a/test/images/clusterapi-tester/Dockerfile b/test/images/clusterapi-tester/Dockerfile index 9327d227545..cfb8401d859 100644 --- a/test/images/clusterapi-tester/Dockerfile +++ b/test/images/clusterapi-tester/Dockerfile @@ -12,6 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM busybox -ADD main main -ENTRYPOINT ["/main"] +FROM BASEIMAGE +ADD clusterapi-tester /clusterapi-tester +ENTRYPOINT ["/clusterapi-tester"] diff --git a/test/images/clusterapi-tester/Makefile b/test/images/clusterapi-tester/Makefile index 02a0e5616b6..369c5cad87e 100644 --- a/test/images/clusterapi-tester/Makefile +++ b/test/images/clusterapi-tester/Makefile @@ -12,20 +12,16 @@ # See the License for the specific language governing permissions and # limitations under the License. -all: push +BIN=clusterapi-tester +ARCH ?= amd64 +TARGET ?= $(CURDIR) +GOLANG_VERSION ?= latest -# 0.0 shouldn't clobber any released builds -TAG = 1.0 -PREFIX = gcr.io/google_containers/clusterapi-tester +bin: + docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ + golang:$(GOLANG_VERSION) \ + /bin/bash -c "\ + cd /go/src/k8s.io/kubernetes/test/images/clusterapi-tester && \ + CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN)" -main: main.go - CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-w' -o main ./main.go - -container: main - docker build --pull -t $(PREFIX):$(TAG) . - -push: container - gcloud docker -- push $(PREFIX):$(TAG) - -clean: - rm -f main +.PHONY: bin diff --git a/test/images/clusterapi-tester/NAME b/test/images/clusterapi-tester/NAME new file mode 100644 index 00000000000..97185c48995 --- /dev/null +++ b/test/images/clusterapi-tester/NAME @@ -0,0 +1 @@ +clusterapi-tester diff --git a/test/images/clusterapi-tester/VERSION b/test/images/clusterapi-tester/VERSION new file mode 100644 index 00000000000..9459d4ba2a0 --- /dev/null +++ b/test/images/clusterapi-tester/VERSION @@ -0,0 +1 @@ +1.1 diff --git a/test/images/clusterapi-tester/main.go b/test/images/clusterapi-tester/clusterapi-tester.go similarity index 100% rename from test/images/clusterapi-tester/main.go rename to test/images/clusterapi-tester/clusterapi-tester.go diff --git a/test/images/dnsutils/BASEIMAGE b/test/images/dnsutils/BASEIMAGE new file mode 100644 index 00000000000..114844f395e --- /dev/null +++ b/test/images/dnsutils/BASEIMAGE @@ -0,0 +1,4 @@ +amd64=alpine:3.6 +arm=arm32v6/alpine:3.6 +arm64=arm64v8/alpine:3.6 +ppc64le=ppc64le/alpine:3.6 diff --git a/test/images/dnsutils/Dockerfile b/test/images/dnsutils/Dockerfile index 2d037e9f843..d041c62703f 100644 --- a/test/images/dnsutils/Dockerfile +++ b/test/images/dnsutils/Dockerfile @@ -12,6 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM alpine +FROM BASEIMAGE + +CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/ RUN apk add --no-cache bind-tools diff --git a/test/images/dnsutils/NAME b/test/images/dnsutils/NAME new file mode 100644 index 00000000000..bca3eb0f23f --- /dev/null +++ b/test/images/dnsutils/NAME @@ -0,0 +1 @@ +dnsutils diff --git a/test/images/dnsutils/VERSION b/test/images/dnsutils/VERSION new file mode 100644 index 00000000000..9459d4ba2a0 --- /dev/null +++ b/test/images/dnsutils/VERSION @@ -0,0 +1 @@ +1.1 diff --git a/test/images/entrypoint-tester/Makefile b/test/images/entrypoint-tester/Makefile index a15e6670582..9d7c516fae6 100644 --- a/test/images/entrypoint-tester/Makefile +++ b/test/images/entrypoint-tester/Makefile @@ -12,19 +12,16 @@ # See the License for the specific language governing permissions and # limitations under the License. -TAG = 0.1 -PREFIX = kubernetes +BIN=ep +ARCH ?= amd64 +TARGET ?= $(CURDIR) +GOLANG_VERSION ?= latest -all: push +bin: + docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ + golang:$(GOLANG_VERSION) \ + /bin/bash -c "\ + cd /go/src/k8s.io/kubernetes/test/images/entrypoint-tester && \ + CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN) ." -ep: ep.go - CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-w' ./ep.go - -image: ep - sudo docker build --pull -t $(PREFIX)/eptest:$(TAG) . - -push: image - sudo docker push $(PREFIX)/eptest:$(TAG) - -clean: - rm -f ep +.PHONY: bin diff --git a/test/images/entrypoint-tester/NAME b/test/images/entrypoint-tester/NAME new file mode 100644 index 00000000000..e2d8e243c18 --- /dev/null +++ b/test/images/entrypoint-tester/NAME @@ -0,0 +1 @@ +ep diff --git a/test/images/entrypoint-tester/VERSION b/test/images/entrypoint-tester/VERSION new file mode 100644 index 00000000000..3b04cfb60da --- /dev/null +++ b/test/images/entrypoint-tester/VERSION @@ -0,0 +1 @@ +0.2 diff --git a/test/images/fakegitserver/Dockerfile b/test/images/fakegitserver/Dockerfile index 8ec3654f010..e25b13e1d6a 100644 --- a/test/images/fakegitserver/Dockerfile +++ b/test/images/fakegitserver/Dockerfile @@ -13,6 +13,7 @@ # limitations under the License. FROM scratch -ADD GITHASH.txt / -ADD gitserver / -ENTRYPOINT ["/gitserver"] +COPY GITHASH.txt / +COPY fakegitserver / +ENTRYPOINT ["/fakegitserver"] + diff --git a/test/images/fakegitserver/Makefile b/test/images/fakegitserver/Makefile index 98b19cfb1c7..b99b9e049f2 100644 --- a/test/images/fakegitserver/Makefile +++ b/test/images/fakegitserver/Makefile @@ -12,21 +12,17 @@ # See the License for the specific language governing permissions and # limitations under the License. -.PHONY: all image push clean +BIN=fakegitserver +ARCH ?= amd64 +TARGET ?= $(CURDIR) +GOLANG_VERSION ?= latest -TAG = 0.1 -PREFIX = gcr.io/google_containers -IMAGE = fakegitserver -ARCH = amd64 +bin: + docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ + golang:$(GOLANG_VERSION) \ + /bin/bash -c "\ + cd /go/src/k8s.io/kubernetes/test/images/fakegitserver && \ + CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN) ." + @echo $(shell git rev-parse HEAD) > $(TARGET)/GITHASH.txt -image: - ./prepare.sh $(ARCH) - docker build --pull -t $(PREFIX)/$(IMAGE):$(TAG) . - -push: image - gcloud docker -- push $(PREFIX)/$(IMAGE):$(TAG) - -all: push - -clean: - rm -f gitserver GITHASH.txt +.PHONY: bin diff --git a/test/images/fakegitserver/NAME b/test/images/fakegitserver/NAME new file mode 100644 index 00000000000..1f1e4b248bf --- /dev/null +++ b/test/images/fakegitserver/NAME @@ -0,0 +1 @@ +fakegitserver diff --git a/test/images/fakegitserver/VERSION b/test/images/fakegitserver/VERSION new file mode 100644 index 00000000000..3b04cfb60da --- /dev/null +++ b/test/images/fakegitserver/VERSION @@ -0,0 +1 @@ +0.2 diff --git a/test/images/fakegitserver/prepare.sh b/test/images/fakegitserver/prepare.sh deleted file mode 100755 index 414e0447974..00000000000 --- a/test/images/fakegitserver/prepare.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -# Copyright 2016 The Kubernetes Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -e -set -x - -ARCH=$1 - -# Build the binary. -CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} go build -a -installsuffix cgo -ldflags '-w' ./gitserver.go - -# Write down the current commit hash. -echo $(git rev-parse HEAD) >> GITHASH.txt diff --git a/test/images/goproxy/Makefile b/test/images/goproxy/Makefile index f7408cbd95d..ce0b1bcaa58 100644 --- a/test/images/goproxy/Makefile +++ b/test/images/goproxy/Makefile @@ -12,19 +12,16 @@ # See the License for the specific language governing permissions and # limitations under the License. -TAG = 0.1 -PREFIX = gcr.io/google_containers +BIN=goproxy +ARCH ?= amd64 +TARGET ?= $(CURDIR) +GOLANG_VERSION ?= latest -all: push +bin: + docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ + golang:$(GOLANG_VERSION) \ + /bin/bash -c "\ + cd /go/src/k8s.io/kubernetes/test/images/goproxy && \ + CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN) ." -goproxy: goproxy.go - CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-w' ./goproxy.go - -image: goproxy - docker build --pull -t $(PREFIX)/goproxy:$(TAG) . - -push: image - gcloud docker -- push $(PREFIX)/goproxy:$(TAG) - -clean: - rm -f goproxy +.PHONY: bin diff --git a/test/images/goproxy/NAME b/test/images/goproxy/NAME new file mode 100644 index 00000000000..663e1754bde --- /dev/null +++ b/test/images/goproxy/NAME @@ -0,0 +1 @@ +goproxy diff --git a/test/images/goproxy/VERSION b/test/images/goproxy/VERSION new file mode 100644 index 00000000000..3b04cfb60da --- /dev/null +++ b/test/images/goproxy/VERSION @@ -0,0 +1 @@ +0.2 diff --git a/test/images/hostexec/BASEIMAGE b/test/images/hostexec/BASEIMAGE new file mode 100644 index 00000000000..114844f395e --- /dev/null +++ b/test/images/hostexec/BASEIMAGE @@ -0,0 +1,4 @@ +amd64=alpine:3.6 +arm=arm32v6/alpine:3.6 +arm64=arm64v8/alpine:3.6 +ppc64le=ppc64le/alpine:3.6 diff --git a/test/images/hostexec/Dockerfile b/test/images/hostexec/Dockerfile index 98f2565f7c2..af6a4cb6181 100644 --- a/test/images/hostexec/Dockerfile +++ b/test/images/hostexec/Dockerfile @@ -12,12 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM alpine:3.2 +FROM BASEIMAGE + +CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/ # install necessary packages: # - curl, nc: used by a lot of e2e tests # - iproute2: includes ss used in NodePort tests -run apk --update add curl netcat-openbsd iproute2 && rm -rf /var/cache/apk/* +RUN apk --update add curl netcat-openbsd iproute2 && rm -rf /var/cache/apk/* # wait forever CMD rm -f /fifo && mkfifo /fifo && exec cat Date: Mon, 26 Jun 2017 15:25:32 +0530 Subject: [PATCH 2/5] Port some more images --- test/images/no-snat-test-proxy/BASEIMAGE | 4 ++++ test/images/no-snat-test-proxy/Dockerfile | 7 +++--- test/images/no-snat-test-proxy/Makefile | 24 +++++++++---------- test/images/no-snat-test-proxy/NAME | 1 + test/images/no-snat-test-proxy/VERSION | 1 + test/images/no-snat-test/BASEIMAGE | 4 ++++ test/images/no-snat-test/Dockerfile | 7 +++--- test/images/no-snat-test/Makefile | 24 +++++++++---------- test/images/no-snat-test/NAME | 1 + test/images/no-snat-test/VERSION | 1 + test/images/nvidia-cuda/BASEIMAGE | 2 ++ test/images/nvidia-cuda/Dockerfile | 6 +++-- test/images/nvidia-cuda/Makefile | 28 ----------------------- test/images/nvidia-cuda/NAME | 1 + test/images/nvidia-cuda/VERSION | 1 + test/images/redis/BASEIMAGE | 4 ++++ test/images/redis/Dockerfile | 4 +++- test/images/redis/Makefile | 26 --------------------- test/images/redis/NAME | 1 + test/images/redis/VERSION | 1 + 20 files changed, 57 insertions(+), 91 deletions(-) create mode 100644 test/images/no-snat-test-proxy/BASEIMAGE create mode 100644 test/images/no-snat-test-proxy/NAME create mode 100644 test/images/no-snat-test-proxy/VERSION create mode 100644 test/images/no-snat-test/BASEIMAGE create mode 100644 test/images/no-snat-test/NAME create mode 100644 test/images/no-snat-test/VERSION create mode 100644 test/images/nvidia-cuda/BASEIMAGE delete mode 100644 test/images/nvidia-cuda/Makefile create mode 100644 test/images/nvidia-cuda/NAME create mode 100644 test/images/nvidia-cuda/VERSION create mode 100644 test/images/redis/BASEIMAGE delete mode 100644 test/images/redis/Makefile create mode 100644 test/images/redis/NAME create mode 100644 test/images/redis/VERSION diff --git a/test/images/no-snat-test-proxy/BASEIMAGE b/test/images/no-snat-test-proxy/BASEIMAGE new file mode 100644 index 00000000000..114844f395e --- /dev/null +++ b/test/images/no-snat-test-proxy/BASEIMAGE @@ -0,0 +1,4 @@ +amd64=alpine:3.6 +arm=arm32v6/alpine:3.6 +arm64=arm64v8/alpine:3.6 +ppc64le=ppc64le/alpine:3.6 diff --git a/test/images/no-snat-test-proxy/Dockerfile b/test/images/no-snat-test-proxy/Dockerfile index 232126642f0..04a89a96bc0 100644 --- a/test/images/no-snat-test-proxy/Dockerfile +++ b/test/images/no-snat-test-proxy/Dockerfile @@ -12,9 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM alpine:3.5 +FROM BASEIMAGE -ADD no-snat-test-proxy /usr/bin/no-snat-test-proxy -RUN chmod +x /usr/bin/no-snat-test-proxy +COPY no-snat-test-proxy / -ENTRYPOINT ["/usr/bin/no-snat-test-proxy"] \ No newline at end of file +ENTRYPOINT ["/no-snat-test-proxy"] diff --git a/test/images/no-snat-test-proxy/Makefile b/test/images/no-snat-test-proxy/Makefile index 84579326670..507a70a3d0c 100644 --- a/test/images/no-snat-test-proxy/Makefile +++ b/test/images/no-snat-test-proxy/Makefile @@ -12,18 +12,16 @@ # See the License for the specific language governing permissions and # limitations under the License. -REGISTRY?=gcr.io/google_containers -REGISTRY_TAG?=1.0.1 -ARCH?=amd64 -NAME?=no-snat-test-proxy +BIN=no-snat-test-proxy +ARCH ?= amd64 +TARGET ?= $(CURDIR) +GOLANG_VERSION ?= latest -build: - go build --ldflags '-linkmode external -extldflags "-static"' -o $(NAME) main.go - docker build -t $(REGISTRY)/$(NAME)-$(ARCH):$(REGISTRY_TAG) . - rm $(NAME) +bin: + docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ + golang:$(GOLANG_VERSION) \ + /bin/bash -c "\ + cd /go/src/k8s.io/kubernetes/test/images/no-snat-test-proxy && \ + CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN)" -push: build - gcloud docker -- push $(REGISTRY)/$(NAME)-$(ARCH):$(REGISTRY_TAG) - -all: build -.PHONY: build push \ No newline at end of file +.PHONY: bin diff --git a/test/images/no-snat-test-proxy/NAME b/test/images/no-snat-test-proxy/NAME new file mode 100644 index 00000000000..f7643dc3ab8 --- /dev/null +++ b/test/images/no-snat-test-proxy/NAME @@ -0,0 +1 @@ +no-snat-test-proxy diff --git a/test/images/no-snat-test-proxy/VERSION b/test/images/no-snat-test-proxy/VERSION new file mode 100644 index 00000000000..6d7de6e6abe --- /dev/null +++ b/test/images/no-snat-test-proxy/VERSION @@ -0,0 +1 @@ +1.0.2 diff --git a/test/images/no-snat-test/BASEIMAGE b/test/images/no-snat-test/BASEIMAGE new file mode 100644 index 00000000000..114844f395e --- /dev/null +++ b/test/images/no-snat-test/BASEIMAGE @@ -0,0 +1,4 @@ +amd64=alpine:3.6 +arm=arm32v6/alpine:3.6 +arm64=arm64v8/alpine:3.6 +ppc64le=ppc64le/alpine:3.6 diff --git a/test/images/no-snat-test/Dockerfile b/test/images/no-snat-test/Dockerfile index 1cd01aafd41..b56749dbfa9 100644 --- a/test/images/no-snat-test/Dockerfile +++ b/test/images/no-snat-test/Dockerfile @@ -12,9 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM alpine:3.5 +FROM BASEIMAGE -ADD no-snat-test /usr/bin/no-snat-test -RUN chmod +x /usr/bin/no-snat-test +COPY no-snat-test / -ENTRYPOINT ["/usr/bin/no-snat-test"] \ No newline at end of file +ENTRYPOINT ["/no-snat-test"] diff --git a/test/images/no-snat-test/Makefile b/test/images/no-snat-test/Makefile index 5ca0c239992..60e604cce9a 100644 --- a/test/images/no-snat-test/Makefile +++ b/test/images/no-snat-test/Makefile @@ -12,18 +12,16 @@ # See the License for the specific language governing permissions and # limitations under the License. -REGISTRY?=gcr.io/google_containers -REGISTRY_TAG?=1.0.1 -ARCH?=amd64 -NAME?=no-snat-test +BIN=no-snat-test +ARCH ?= amd64 +TARGET ?= $(CURDIR) +GOLANG_VERSION ?= latest -build: - go build --ldflags '-linkmode external -extldflags "-static"' -o $(NAME) main.go - docker build -t $(REGISTRY)/$(NAME)-$(ARCH):$(REGISTRY_TAG) . - rm $(NAME) +bin: + docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ + golang:$(GOLANG_VERSION) \ + /bin/bash -c "\ + cd /go/src/k8s.io/kubernetes/test/images/no-snat-test && \ + CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN)" -push: build - gcloud docker -- push $(REGISTRY)/$(NAME)-$(ARCH):$(REGISTRY_TAG) - -all: build -.PHONY: build push \ No newline at end of file +.PHONY: bin diff --git a/test/images/no-snat-test/NAME b/test/images/no-snat-test/NAME new file mode 100644 index 00000000000..97de61b8657 --- /dev/null +++ b/test/images/no-snat-test/NAME @@ -0,0 +1 @@ +no-snat-test diff --git a/test/images/no-snat-test/VERSION b/test/images/no-snat-test/VERSION new file mode 100644 index 00000000000..6d7de6e6abe --- /dev/null +++ b/test/images/no-snat-test/VERSION @@ -0,0 +1 @@ +1.0.2 diff --git a/test/images/nvidia-cuda/BASEIMAGE b/test/images/nvidia-cuda/BASEIMAGE new file mode 100644 index 00000000000..a7b6d587069 --- /dev/null +++ b/test/images/nvidia-cuda/BASEIMAGE @@ -0,0 +1,2 @@ +amd64=nvidia/cuda:8.0-devel-ubuntu16.04 +ppc64le=nvidia/cuda-ppc64le:8.0-devel-ubuntu16.04 diff --git a/test/images/nvidia-cuda/Dockerfile b/test/images/nvidia-cuda/Dockerfile index 2d68b97f5f7..c7b9cfdc31e 100644 --- a/test/images/nvidia-cuda/Dockerfile +++ b/test/images/nvidia-cuda/Dockerfile @@ -12,7 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM nvidia/cuda:8.0-devel-ubuntu16.04 +FROM BASEIMAGE + +CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/ RUN apt-get update && apt-get install -y --no-install-recommends \ cuda-samples-$CUDA_PKG_VERSION && \ @@ -21,4 +23,4 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ WORKDIR /usr/local/cuda/samples/0_Simple/vectorAdd RUN make -CMD ./vectorAdd \ No newline at end of file +CMD ./vectorAdd diff --git a/test/images/nvidia-cuda/Makefile b/test/images/nvidia-cuda/Makefile deleted file mode 100644 index 616f796c66f..00000000000 --- a/test/images/nvidia-cuda/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright 2017 The Kubernetes Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -.PHONY: all push build - -TAG ?= v0.1 - -REGISTRY ?= gcr.io/google-containers -IMAGE = $(REGISTRY)/cuda-vector-add - -build: - docker build --pull -t $(IMAGE):$(TAG) . - -push: - gcloud docker -- push $(IMAGE):$(TAG) - -all: build diff --git a/test/images/nvidia-cuda/NAME b/test/images/nvidia-cuda/NAME new file mode 100644 index 00000000000..a3cf7cef8ba --- /dev/null +++ b/test/images/nvidia-cuda/NAME @@ -0,0 +1 @@ +cuda-vector-add diff --git a/test/images/nvidia-cuda/VERSION b/test/images/nvidia-cuda/VERSION new file mode 100644 index 00000000000..60fe1f267ba --- /dev/null +++ b/test/images/nvidia-cuda/VERSION @@ -0,0 +1 @@ +v0.2 diff --git a/test/images/redis/BASEIMAGE b/test/images/redis/BASEIMAGE new file mode 100644 index 00000000000..114844f395e --- /dev/null +++ b/test/images/redis/BASEIMAGE @@ -0,0 +1,4 @@ +amd64=alpine:3.6 +arm=arm32v6/alpine:3.6 +arm64=arm64v8/alpine:3.6 +ppc64le=ppc64le/alpine:3.6 diff --git a/test/images/redis/Dockerfile b/test/images/redis/Dockerfile index ecc3ed7c323..0add11c3d44 100644 --- a/test/images/redis/Dockerfile +++ b/test/images/redis/Dockerfile @@ -12,7 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM alpine:3.5 +FROM BASEIMAGE + +CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/ RUN apk add --no-cache redis diff --git a/test/images/redis/Makefile b/test/images/redis/Makefile deleted file mode 100644 index 58ff57da82e..00000000000 --- a/test/images/redis/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 2017 The Kubernetes Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -TAG ?= e2e -PREFIX ?= gcr.io/k8s-testimages - -all: push - -image: - docker build --pull -t $(PREFIX)/redis:$(TAG) . - -push: image - gcloud docker -- push $(PREFIX)/redis:$(TAG) - -clean: diff --git a/test/images/redis/NAME b/test/images/redis/NAME new file mode 100644 index 00000000000..7800f0fad3f --- /dev/null +++ b/test/images/redis/NAME @@ -0,0 +1 @@ +redis diff --git a/test/images/redis/VERSION b/test/images/redis/VERSION new file mode 100644 index 00000000000..49d59571fbf --- /dev/null +++ b/test/images/redis/VERSION @@ -0,0 +1 @@ +0.1 From 60778cdaa42e8d5f12c73ca541c27f1bd32c302c Mon Sep 17 00:00:00 2001 From: Manjunath A Kumatagi Date: Wed, 28 Jun 2017 19:19:25 +0530 Subject: [PATCH 3/5] Move go build to image-utils --- test/images/clusterapi-tester/Makefile | 10 ++++------ test/images/entrypoint-tester/Makefile | 10 ++++------ test/images/fakegitserver/Makefile | 13 ++++++------- test/images/goproxy/Makefile | 10 ++++------ test/images/image-util.sh | 18 +++++++++++++++++- test/images/logs-generator/Makefile | 10 ++++------ test/images/mount-tester/Makefile | 10 ++++------ test/images/n-way-http/Makefile | 10 ++++------ test/images/net/Makefile | 10 ++++------ test/images/netexec/Makefile | 10 ++++------ test/images/network-tester/Makefile | 10 ++++------ test/images/no-snat-test-proxy/Makefile | 10 ++++------ test/images/no-snat-test/Makefile | 10 ++++------ test/images/port-forward-tester/Makefile | 10 ++++------ test/images/porter/Makefile | 10 ++++------ test/images/resource-consumer/Makefile | 10 ++++------ .../resource-consumer/controller/Makefile | 12 ++++++------ test/images/serve_hostname/Makefile | 10 ++++------ 18 files changed, 89 insertions(+), 104 deletions(-) diff --git a/test/images/clusterapi-tester/Makefile b/test/images/clusterapi-tester/Makefile index 369c5cad87e..7e7d827fdc6 100644 --- a/test/images/clusterapi-tester/Makefile +++ b/test/images/clusterapi-tester/Makefile @@ -12,16 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -BIN=clusterapi-tester +SRCS = clusterapi-tester ARCH ?= amd64 TARGET ?= $(CURDIR) GOLANG_VERSION ?= latest +SRC_DIR = $(notdir $(shell pwd)) +export bin: - docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ - golang:$(GOLANG_VERSION) \ - /bin/bash -c "\ - cd /go/src/k8s.io/kubernetes/test/images/clusterapi-tester && \ - CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN)" + ../image-util.sh bin $(SRCS) .PHONY: bin diff --git a/test/images/entrypoint-tester/Makefile b/test/images/entrypoint-tester/Makefile index 9d7c516fae6..79201cd4197 100644 --- a/test/images/entrypoint-tester/Makefile +++ b/test/images/entrypoint-tester/Makefile @@ -12,16 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -BIN=ep +SRCS=ep ARCH ?= amd64 TARGET ?= $(CURDIR) GOLANG_VERSION ?= latest +SRC_DIR = $(notdir $(shell pwd)) +export bin: - docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ - golang:$(GOLANG_VERSION) \ - /bin/bash -c "\ - cd /go/src/k8s.io/kubernetes/test/images/entrypoint-tester && \ - CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN) ." + ../image-util.sh bin $(SRCS) .PHONY: bin diff --git a/test/images/fakegitserver/Makefile b/test/images/fakegitserver/Makefile index b99b9e049f2..34f07dc9da3 100644 --- a/test/images/fakegitserver/Makefile +++ b/test/images/fakegitserver/Makefile @@ -12,17 +12,16 @@ # See the License for the specific language governing permissions and # limitations under the License. -BIN=fakegitserver +SRCS = fakegitserver ARCH ?= amd64 TARGET ?= $(CURDIR) GOLANG_VERSION ?= latest +SRC_DIR = $(notdir $(shell pwd)) +export + +IGNORE := $(shell git rev-parse HEAD > $(TARGET)/GITHASH.txt) bin: - docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ - golang:$(GOLANG_VERSION) \ - /bin/bash -c "\ - cd /go/src/k8s.io/kubernetes/test/images/fakegitserver && \ - CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN) ." - @echo $(shell git rev-parse HEAD) > $(TARGET)/GITHASH.txt + ../image-util.sh bin $(SRCS) .PHONY: bin diff --git a/test/images/goproxy/Makefile b/test/images/goproxy/Makefile index ce0b1bcaa58..35282790f0e 100644 --- a/test/images/goproxy/Makefile +++ b/test/images/goproxy/Makefile @@ -12,16 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -BIN=goproxy +SRCS=goproxy ARCH ?= amd64 TARGET ?= $(CURDIR) GOLANG_VERSION ?= latest +SRC_DIR = $(notdir $(shell pwd)) +export bin: - docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ - golang:$(GOLANG_VERSION) \ - /bin/bash -c "\ - cd /go/src/k8s.io/kubernetes/test/images/goproxy && \ - CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN) ." + ../image-util.sh bin $(SRCS) .PHONY: bin diff --git a/test/images/image-util.sh b/test/images/image-util.sh index e6c8ade0819..96ccaddfe4a 100755 --- a/test/images/image-util.sh +++ b/test/images/image-util.sh @@ -21,6 +21,8 @@ set -o pipefail TASK=$1 IMAGE=$2 +KUBE_ROOT="$(cd "$(dirname "${BASH_SOURCE}")/../.." && pwd -P)" + # Mapping of go ARCH to actual architectures shipped part of multiarch/qemu-user-static project declare -A QEMUARCHS=( ["amd64"]="x86_64" ["arm"]="arm" ["arm64"]="aarch64" ["ppc64le"]="ppc64le" ["s390x"]="s390x" ) @@ -109,4 +111,18 @@ push() { done } -eval ${TASK} +# This function is for building the go code +bin() { + for SRC in $@; + do + docker run --rm -it -v ${TARGET}:${TARGET}:Z -v ${KUBE_ROOT}:/go/src/k8s.io/kubernetes:Z \ + golang:${GOLANG_VERSION} \ + /bin/bash -c "\ + cd /go/src/k8s.io/kubernetes/test/images/${SRC_DIR} && \ + CGO_ENABLED=0 GOARM=${GOARM} GOARCH=${ARCH} go build -a -installsuffix cgo --ldflags '-w' -o ${TARGET}/${SRC} ./$(dirname ${SRC})" + done +} + +shift + +eval ${TASK} "$@" diff --git a/test/images/logs-generator/Makefile b/test/images/logs-generator/Makefile index da955f391cf..86902a2dac6 100644 --- a/test/images/logs-generator/Makefile +++ b/test/images/logs-generator/Makefile @@ -12,16 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -BIN=logs-generator +SRCS=logs-generator ARCH ?= amd64 TARGET ?= $(CURDIR) GOLANG_VERSION ?= latest +SRC_DIR = $(notdir $(shell pwd)) +export bin: - docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ - golang:$(GOLANG_VERSION) \ - /bin/bash -c "\ - cd /go/src/k8s.io/kubernetes/test/images/logs-generator && \ - CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN) ." + ../image-util.sh bin $(SRCS) .PHONY: bin diff --git a/test/images/mount-tester/Makefile b/test/images/mount-tester/Makefile index facb75ab96b..969e8080d10 100644 --- a/test/images/mount-tester/Makefile +++ b/test/images/mount-tester/Makefile @@ -12,16 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -BIN=mounttest +SRCS=mounttest ARCH ?= amd64 TARGET ?= $(CURDIR) GOLANG_VERSION ?= latest +SRC_DIR = $(notdir $(shell pwd)) +export bin: - docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ - golang:$(GOLANG_VERSION) \ - /bin/bash -c "\ - cd /go/src/k8s.io/kubernetes/test/images/mount-tester && \ - CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN) ." + ../image-util.sh bin $(SRCS) .PHONY: bin diff --git a/test/images/n-way-http/Makefile b/test/images/n-way-http/Makefile index 5d324cd85a6..2847ed3f1ca 100644 --- a/test/images/n-way-http/Makefile +++ b/test/images/n-way-http/Makefile @@ -12,16 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -BIN=n-way-http +SRCS=n-way-http ARCH ?= amd64 TARGET ?= $(CURDIR) GOLANG_VERSION ?= latest +SRC_DIR = $(notdir $(shell pwd)) +export bin: - docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ - golang:$(GOLANG_VERSION) \ - /bin/bash -c "\ - cd /go/src/k8s.io/kubernetes/test/images/n-way-http && \ - CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN) ." + ../image-util.sh bin $(SRCS) .PHONY: bin diff --git a/test/images/net/Makefile b/test/images/net/Makefile index 9313191bc6c..aabdea01c6f 100644 --- a/test/images/net/Makefile +++ b/test/images/net/Makefile @@ -12,16 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -BIN=net +SRCS=net ARCH ?= amd64 TARGET ?= $(CURDIR) GOLANG_VERSION ?= latest +SRC_DIR = $(notdir $(shell pwd)) +export bin: - docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ - golang:$(GOLANG_VERSION) \ - /bin/bash -c "\ - cd /go/src/k8s.io/kubernetes/test/images/net && \ - CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN) ." + ../image-util.sh bin $(SRCS) .PHONY: bin diff --git a/test/images/netexec/Makefile b/test/images/netexec/Makefile index ddc44efae3b..eb604a5d6c3 100644 --- a/test/images/netexec/Makefile +++ b/test/images/netexec/Makefile @@ -12,16 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -BIN=netexec +SRCS=netexec ARCH ?= amd64 TARGET ?= $(CURDIR) GOLANG_VERSION ?= latest +SRC_DIR = $(notdir $(shell pwd)) +export bin: - docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ - golang:$(GOLANG_VERSION) \ - /bin/bash -c "\ - cd /go/src/k8s.io/kubernetes/test/images/netexec && \ - CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN) ." + ../image-util.sh bin $(SRCS) .PHONY: bin diff --git a/test/images/network-tester/Makefile b/test/images/network-tester/Makefile index 94c0670872f..e591ddecef5 100644 --- a/test/images/network-tester/Makefile +++ b/test/images/network-tester/Makefile @@ -12,16 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -BIN=nettest +SRCS=nettest ARCH ?= amd64 TARGET ?= $(CURDIR) GOLANG_VERSION ?= latest +SRC_DIR = $(notdir $(shell pwd)) +export bin: - docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ - golang:$(GOLANG_VERSION) \ - /bin/bash -c "\ - cd /go/src/k8s.io/kubernetes/test/images/network-tester && \ - CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN) ." + ../image-util.sh bin $(SRCS) .PHONY: bin diff --git a/test/images/no-snat-test-proxy/Makefile b/test/images/no-snat-test-proxy/Makefile index 507a70a3d0c..882b56fd090 100644 --- a/test/images/no-snat-test-proxy/Makefile +++ b/test/images/no-snat-test-proxy/Makefile @@ -12,16 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -BIN=no-snat-test-proxy +SRCS=no-snat-test-proxy ARCH ?= amd64 TARGET ?= $(CURDIR) GOLANG_VERSION ?= latest +SRC_DIR = $(notdir $(shell pwd)) +export bin: - docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ - golang:$(GOLANG_VERSION) \ - /bin/bash -c "\ - cd /go/src/k8s.io/kubernetes/test/images/no-snat-test-proxy && \ - CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN)" + ../image-util.sh bin $(SRCS) .PHONY: bin diff --git a/test/images/no-snat-test/Makefile b/test/images/no-snat-test/Makefile index 60e604cce9a..3c257410da3 100644 --- a/test/images/no-snat-test/Makefile +++ b/test/images/no-snat-test/Makefile @@ -12,16 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -BIN=no-snat-test +SRCS=no-snat-test ARCH ?= amd64 TARGET ?= $(CURDIR) GOLANG_VERSION ?= latest +SRC_DIR = $(notdir $(shell pwd)) +export bin: - docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ - golang:$(GOLANG_VERSION) \ - /bin/bash -c "\ - cd /go/src/k8s.io/kubernetes/test/images/no-snat-test && \ - CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN)" + ../image-util.sh bin $(SRCS) .PHONY: bin diff --git a/test/images/port-forward-tester/Makefile b/test/images/port-forward-tester/Makefile index 71acb8f88d5..c6a37e9bc0e 100644 --- a/test/images/port-forward-tester/Makefile +++ b/test/images/port-forward-tester/Makefile @@ -12,16 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -BIN=portforwardtester +SRSC=portforwardtester ARCH ?= amd64 TARGET ?= $(CURDIR) GOLANG_VERSION ?= latest +SRC_DIR = $(notdir $(shell pwd)) +export bin: - docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ - golang:$(GOLANG_VERSION) \ - /bin/bash -c "\ - cd /go/src/k8s.io/kubernetes/test/images/port-forward-tester && \ - CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN) ." + ../image-util.sh bin $(SRCS) .PHONY: bin diff --git a/test/images/porter/Makefile b/test/images/porter/Makefile index d36e960b8cb..eefe96f71a0 100644 --- a/test/images/porter/Makefile +++ b/test/images/porter/Makefile @@ -12,16 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -BIN=porter +SRCS=porter ARCH ?= amd64 TARGET ?= $(CURDIR) GOLANG_VERSION ?= latest +SRC_DIR = $(notdir $(shell pwd)) +export bin: - docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ - golang:$(GOLANG_VERSION) \ - /bin/bash -c "\ - cd /go/src/k8s.io/kubernetes/test/images/porter && \ - CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN) ." + ../image-util.sh bin $(SRCS) .PHONY: bin diff --git a/test/images/resource-consumer/Makefile b/test/images/resource-consumer/Makefile index b0ae0b41028..44b90a03920 100644 --- a/test/images/resource-consumer/Makefile +++ b/test/images/resource-consumer/Makefile @@ -12,16 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. +SRCS = consumer consume-cpu/consume-cpu ARCH ?= amd64 TARGET ?= $(CURDIR) GOLANG_VERSION ?= latest +SRC_DIR = $(notdir $(shell pwd)) +export bin: - docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ - golang:$(GOLANG_VERSION) \ - /bin/bash -c "\ - cd /go/src/k8s.io/kubernetes/test/images/resource-consumer && \ - CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/consume-cpu/consume-cpu ./consume-cpu/consume_cpu.go && \ - CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/consumer ." + ../image-util.sh bin $(SRCS) .PHONY: bin diff --git a/test/images/resource-consumer/controller/Makefile b/test/images/resource-consumer/controller/Makefile index 7570296320a..24564eeeefa 100644 --- a/test/images/resource-consumer/controller/Makefile +++ b/test/images/resource-consumer/controller/Makefile @@ -12,14 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -BIN=controller +SRCS=controller ARCH ?= amd64 TARGET ?= $(CURDIR) GOLANG_VERSION ?= latest +SRC_DIR = resource-consumer/$(notdir $(shell pwd)) +export bin: - docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../../:/go/src/k8s.io/kubernetes:Z \ - golang:$(GOLANG_VERSION) \ - /bin/bash -c "\ - cd /go/src/k8s.io/kubernetes/test/images/resource-consumer/controller && \ - CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN) ." + ../../image-util.sh bin $(SRCS) + +.PHONY: bin diff --git a/test/images/serve_hostname/Makefile b/test/images/serve_hostname/Makefile index 879bcd9948d..1c2ea577518 100644 --- a/test/images/serve_hostname/Makefile +++ b/test/images/serve_hostname/Makefile @@ -12,16 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -BIN=serve_hostname +SRCS=serve_hostname ARCH ?= amd64 TARGET ?= $(CURDIR) GOLANG_VERSION ?= latest +SRC_DIR = $(notdir $(shell pwd)) +export bin: - docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \ - golang:$(GOLANG_VERSION) \ - /bin/bash -c "\ - cd /go/src/k8s.io/kubernetes/test/images/serve_hostname && \ - CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN) ." + ../image-util.sh bin $(SRCS) .PHONY: bin From 19ca6ca9f2cbb0056766e46a6a0c69c40d990287 Mon Sep 17 00:00:00 2001 From: Manjunath A Kumatagi Date: Fri, 30 Jun 2017 18:43:55 +0530 Subject: [PATCH 4/5] Fix review comments - luxas, ixdy --- test/images/BUILD | 6 +++--- test/images/Makefile | 2 +- test/images/clusterapi-tester/NAME | 1 - test/images/clusterapi-tester/VERSION | 2 +- .../{nvidia-cuda => cuda-vector-add}/BASEIMAGE | 0 .../{nvidia-cuda => cuda-vector-add}/Dockerfile | 0 .../{nvidia-cuda => cuda-vector-add}/README.md | 0 test/images/cuda-vector-add/VERSION | 1 + test/images/dnsutils/NAME | 1 - test/images/dnsutils/VERSION | 2 +- test/images/entrypoint-tester/NAME | 1 - test/images/entrypoint-tester/VERSION | 2 +- test/images/fakegitserver/NAME | 1 - test/images/fakegitserver/VERSION | 2 +- test/images/goproxy/NAME | 1 - test/images/goproxy/VERSION | 2 +- test/images/hostexec/NAME | 1 - test/images/hostexec/VERSION | 2 +- test/images/image-util.sh | 14 ++------------ test/images/iperf/NAME | 1 - test/images/iperf/VERSION | 2 +- test/images/jessie-dnsutils/NAME | 1 - test/images/jessie-dnsutils/VERSION | 2 +- test/images/logs-generator/NAME | 1 - test/images/logs-generator/VERSION | 2 +- test/images/mount-tester-user/BASEIMAGE | 5 ----- test/images/mount-tester-user/NAME | 1 - test/images/mount-tester-user/VERSION | 1 - test/images/mount-tester/NAME | 1 - test/images/mount-tester/VERSION | 1 - test/images/mounttest-user/BASEIMAGE | 5 +++++ .../Dockerfile | 0 test/images/mounttest-user/VERSION | 1 + test/images/{mount-tester => mounttest}/BUILD | 12 ++++++------ test/images/{mount-tester => mounttest}/Dockerfile | 0 test/images/{mount-tester => mounttest}/Makefile | 0 test/images/mounttest/VERSION | 1 + test/images/{mount-tester => mounttest}/mt.go | 0 test/images/n-way-http/NAME | 1 - test/images/n-way-http/VERSION | 2 +- test/images/net/NAME | 1 - test/images/net/VERSION | 2 +- test/images/netexec/NAME | 1 - test/images/netexec/VERSION | 2 +- test/images/{network-tester => nettest}/BUILD | 12 ++++++------ test/images/{network-tester => nettest}/Dockerfile | 0 test/images/{network-tester => nettest}/Makefile | 0 test/images/nettest/VERSION | 1 + test/images/{network-tester => nettest}/nettest.go | 0 test/images/{network-tester => nettest}/rc.json | 0 .../{network-tester => nettest}/service.json | 0 .../{network-tester => nettest}/slow-pod.json | 0 .../{network-tester => nettest}/slow-rc.json | 0 test/images/network-tester/NAME | 1 - test/images/network-tester/VERSION | 1 - test/images/no-snat-test-proxy/NAME | 1 - test/images/no-snat-test-proxy/VERSION | 2 +- test/images/no-snat-test/NAME | 1 - test/images/no-snat-test/VERSION | 2 +- test/images/nvidia-cuda/NAME | 1 - test/images/nvidia-cuda/VERSION | 1 - test/images/port-forward-tester/NAME | 1 - test/images/port-forward-tester/VERSION | 2 +- test/images/porter/NAME | 1 - test/images/porter/VERSION | 2 +- test/images/redis/NAME | 1 - test/images/redis/VERSION | 2 +- test/images/resource-consumer/NAME | 1 - test/images/resource-consumer/VERSION | 2 +- test/images/resource-consumer/controller/NAME | 1 - test/images/resource-consumer/controller/VERSION | 2 +- .../{serve_hostname => serve-hostname}/BASEIMAGE | 0 .../{serve_hostname => serve-hostname}/BUILD | 12 ++++++------ .../{serve_hostname => serve-hostname}/Dockerfile | 0 .../{serve_hostname => serve-hostname}/Makefile | 0 .../{serve_hostname => serve-hostname}/README.md | 0 test/images/serve-hostname/VERSION | 1 + .../serve_hostname.go | 0 test/images/serve_hostname/NAME | 1 - test/images/serve_hostname/VERSION | 1 - 80 files changed, 53 insertions(+), 87 deletions(-) delete mode 100644 test/images/clusterapi-tester/NAME rename test/images/{nvidia-cuda => cuda-vector-add}/BASEIMAGE (100%) rename test/images/{nvidia-cuda => cuda-vector-add}/Dockerfile (100%) rename test/images/{nvidia-cuda => cuda-vector-add}/README.md (100%) create mode 100644 test/images/cuda-vector-add/VERSION delete mode 100644 test/images/dnsutils/NAME delete mode 100644 test/images/entrypoint-tester/NAME delete mode 100644 test/images/fakegitserver/NAME delete mode 100644 test/images/goproxy/NAME delete mode 100644 test/images/hostexec/NAME delete mode 100644 test/images/iperf/NAME delete mode 100644 test/images/jessie-dnsutils/NAME delete mode 100644 test/images/logs-generator/NAME delete mode 100644 test/images/mount-tester-user/BASEIMAGE delete mode 100644 test/images/mount-tester-user/NAME delete mode 100644 test/images/mount-tester-user/VERSION delete mode 100644 test/images/mount-tester/NAME delete mode 100644 test/images/mount-tester/VERSION create mode 100644 test/images/mounttest-user/BASEIMAGE rename test/images/{mount-tester-user => mounttest-user}/Dockerfile (100%) create mode 100644 test/images/mounttest-user/VERSION rename test/images/{mount-tester => mounttest}/BUILD (95%) rename test/images/{mount-tester => mounttest}/Dockerfile (100%) rename test/images/{mount-tester => mounttest}/Makefile (100%) create mode 100644 test/images/mounttest/VERSION rename test/images/{mount-tester => mounttest}/mt.go (100%) delete mode 100644 test/images/n-way-http/NAME delete mode 100644 test/images/net/NAME delete mode 100644 test/images/netexec/NAME rename test/images/{network-tester => nettest}/BUILD (96%) rename test/images/{network-tester => nettest}/Dockerfile (100%) rename test/images/{network-tester => nettest}/Makefile (100%) create mode 100644 test/images/nettest/VERSION rename test/images/{network-tester => nettest}/nettest.go (100%) rename test/images/{network-tester => nettest}/rc.json (100%) rename test/images/{network-tester => nettest}/service.json (100%) rename test/images/{network-tester => nettest}/slow-pod.json (100%) rename test/images/{network-tester => nettest}/slow-rc.json (100%) delete mode 100644 test/images/network-tester/NAME delete mode 100644 test/images/network-tester/VERSION delete mode 100644 test/images/no-snat-test-proxy/NAME delete mode 100644 test/images/no-snat-test/NAME delete mode 100644 test/images/nvidia-cuda/NAME delete mode 100644 test/images/nvidia-cuda/VERSION delete mode 100644 test/images/port-forward-tester/NAME delete mode 100644 test/images/porter/NAME delete mode 100644 test/images/redis/NAME delete mode 100644 test/images/resource-consumer/NAME delete mode 100644 test/images/resource-consumer/controller/NAME rename test/images/{serve_hostname => serve-hostname}/BASEIMAGE (100%) rename test/images/{serve_hostname => serve-hostname}/BUILD (95%) rename test/images/{serve_hostname => serve-hostname}/Dockerfile (100%) rename test/images/{serve_hostname => serve-hostname}/Makefile (100%) rename test/images/{serve_hostname => serve-hostname}/README.md (100%) create mode 100644 test/images/serve-hostname/VERSION rename test/images/{serve_hostname => serve-hostname}/serve_hostname.go (100%) delete mode 100644 test/images/serve_hostname/NAME delete mode 100644 test/images/serve_hostname/VERSION diff --git a/test/images/BUILD b/test/images/BUILD index 4424ecf83c1..009d86244a1 100644 --- a/test/images/BUILD +++ b/test/images/BUILD @@ -23,17 +23,17 @@ filegroup( "//test/images/fakegitserver:all-srcs", "//test/images/goproxy:all-srcs", "//test/images/logs-generator:all-srcs", - "//test/images/mount-tester:all-srcs", + "//test/images/mounttest:all-srcs", "//test/images/n-way-http:all-srcs", "//test/images/net:all-srcs", "//test/images/netexec:all-srcs", - "//test/images/network-tester:all-srcs", + "//test/images/nettest:all-srcs", "//test/images/no-snat-test:all-srcs", "//test/images/no-snat-test-proxy:all-srcs", "//test/images/port-forward-tester:all-srcs", "//test/images/porter:all-srcs", "//test/images/resource-consumer:all-srcs", - "//test/images/serve_hostname:all-srcs", + "//test/images/serve-hostname:all-srcs", ], tags = ["automanaged"], ) diff --git a/test/images/Makefile b/test/images/Makefile index 9d5aeb5ebc5..450b17beb7c 100644 --- a/test/images/Makefile +++ b/test/images/Makefile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -REGISTRY ?= gcr.io/k8s-e2e-images +REGISTRY ?= gcr.io/kubernetes-e2e-test-images GOARM=7 QEMUVERSION=v2.7.0 GOLANG_VERSION=1.8.3 diff --git a/test/images/clusterapi-tester/NAME b/test/images/clusterapi-tester/NAME deleted file mode 100644 index 97185c48995..00000000000 --- a/test/images/clusterapi-tester/NAME +++ /dev/null @@ -1 +0,0 @@ -clusterapi-tester diff --git a/test/images/clusterapi-tester/VERSION b/test/images/clusterapi-tester/VERSION index 9459d4ba2a0..d3827e75a5c 100644 --- a/test/images/clusterapi-tester/VERSION +++ b/test/images/clusterapi-tester/VERSION @@ -1 +1 @@ -1.1 +1.0 diff --git a/test/images/nvidia-cuda/BASEIMAGE b/test/images/cuda-vector-add/BASEIMAGE similarity index 100% rename from test/images/nvidia-cuda/BASEIMAGE rename to test/images/cuda-vector-add/BASEIMAGE diff --git a/test/images/nvidia-cuda/Dockerfile b/test/images/cuda-vector-add/Dockerfile similarity index 100% rename from test/images/nvidia-cuda/Dockerfile rename to test/images/cuda-vector-add/Dockerfile diff --git a/test/images/nvidia-cuda/README.md b/test/images/cuda-vector-add/README.md similarity index 100% rename from test/images/nvidia-cuda/README.md rename to test/images/cuda-vector-add/README.md diff --git a/test/images/cuda-vector-add/VERSION b/test/images/cuda-vector-add/VERSION new file mode 100644 index 00000000000..d3827e75a5c --- /dev/null +++ b/test/images/cuda-vector-add/VERSION @@ -0,0 +1 @@ +1.0 diff --git a/test/images/dnsutils/NAME b/test/images/dnsutils/NAME deleted file mode 100644 index bca3eb0f23f..00000000000 --- a/test/images/dnsutils/NAME +++ /dev/null @@ -1 +0,0 @@ -dnsutils diff --git a/test/images/dnsutils/VERSION b/test/images/dnsutils/VERSION index 9459d4ba2a0..d3827e75a5c 100644 --- a/test/images/dnsutils/VERSION +++ b/test/images/dnsutils/VERSION @@ -1 +1 @@ -1.1 +1.0 diff --git a/test/images/entrypoint-tester/NAME b/test/images/entrypoint-tester/NAME deleted file mode 100644 index e2d8e243c18..00000000000 --- a/test/images/entrypoint-tester/NAME +++ /dev/null @@ -1 +0,0 @@ -ep diff --git a/test/images/entrypoint-tester/VERSION b/test/images/entrypoint-tester/VERSION index 3b04cfb60da..d3827e75a5c 100644 --- a/test/images/entrypoint-tester/VERSION +++ b/test/images/entrypoint-tester/VERSION @@ -1 +1 @@ -0.2 +1.0 diff --git a/test/images/fakegitserver/NAME b/test/images/fakegitserver/NAME deleted file mode 100644 index 1f1e4b248bf..00000000000 --- a/test/images/fakegitserver/NAME +++ /dev/null @@ -1 +0,0 @@ -fakegitserver diff --git a/test/images/fakegitserver/VERSION b/test/images/fakegitserver/VERSION index 3b04cfb60da..d3827e75a5c 100644 --- a/test/images/fakegitserver/VERSION +++ b/test/images/fakegitserver/VERSION @@ -1 +1 @@ -0.2 +1.0 diff --git a/test/images/goproxy/NAME b/test/images/goproxy/NAME deleted file mode 100644 index 663e1754bde..00000000000 --- a/test/images/goproxy/NAME +++ /dev/null @@ -1 +0,0 @@ -goproxy diff --git a/test/images/goproxy/VERSION b/test/images/goproxy/VERSION index 3b04cfb60da..d3827e75a5c 100644 --- a/test/images/goproxy/VERSION +++ b/test/images/goproxy/VERSION @@ -1 +1 @@ -0.2 +1.0 diff --git a/test/images/hostexec/NAME b/test/images/hostexec/NAME deleted file mode 100644 index 0d7e9c73d9d..00000000000 --- a/test/images/hostexec/NAME +++ /dev/null @@ -1 +0,0 @@ -hostexec diff --git a/test/images/hostexec/VERSION b/test/images/hostexec/VERSION index 7e32cd56983..d3827e75a5c 100644 --- a/test/images/hostexec/VERSION +++ b/test/images/hostexec/VERSION @@ -1 +1 @@ -1.3 +1.0 diff --git a/test/images/image-util.sh b/test/images/image-util.sh index 96ccaddfe4a..d9ff9e31e08 100755 --- a/test/images/image-util.sh +++ b/test/images/image-util.sh @@ -63,8 +63,6 @@ build() { pushd ${temp_dir} # image tag TAG=$( Date: Fri, 30 Jun 2017 19:42:55 +0530 Subject: [PATCH 5/5] Fix verify-golint --- hack/.linted_packages | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/.linted_packages b/hack/.linted_packages index a04fb93796e..fa3ca90f21d 100644 --- a/hack/.linted_packages +++ b/hack/.linted_packages @@ -463,14 +463,14 @@ test/images/entrypoint-tester test/images/fakegitserver test/images/goproxy test/images/logs-generator -test/images/mount-tester +test/images/mounttest test/images/n-way-http test/images/net test/images/net/common test/images/port-forward-tester test/images/porter test/images/resource-consumer/consume-cpu -test/images/serve_hostname +test/images/serve-hostname test/integration/apiserver test/integration/client test/integration/configmap