|
@@ -47,7 +47,7 @@ dist/flanneld.exe: $(shell find . -type f -name '*.go')
|
|
|
# This will build flannel natively using golang image
|
|
|
dist/flanneld-$(ARCH): dist/qemu-$(ARCH)-static
|
|
|
# valid values for ARCH are [amd64 arm arm64 ppc64le s390x]
|
|
|
- docker run -e CGO_ENABLED=$(CGO_ENABLED) -e GOARCH=$(ARCH) \
|
|
|
+ docker run -e CGO_ENABLED=$(CGO_ENABLED) -e GOARCH=$(ARCH) -e GOCACHE=/go \
|
|
|
-u $(shell id -u):$(shell id -g) \
|
|
|
-v $(CURDIR)/dist/qemu-$(ARCH)-static:/usr/bin/qemu-$(ARCH)-static \
|
|
|
-v $(CURDIR):/go/src/github.com/coreos/flannel:ro \
|
|
@@ -129,7 +129,7 @@ ifneq ($(ARCH),amd64)
|
|
|
$(MAKE) dist/qemu-$(ARCH)-static
|
|
|
endif
|
|
|
# valid values for ARCH are [amd64 arm arm64 ppc64le s390x]
|
|
|
- docker run -e GOARM=$(GOARM) \
|
|
|
+ docker run -e GOARM=$(GOARM) -e GOCACHE=/go \
|
|
|
-u $(shell id -u):$(shell id -g) \
|
|
|
-v $(CURDIR):/go/src/github.com/coreos/flannel:ro \
|
|
|
-v $(CURDIR)/dist:/go/src/github.com/coreos/flannel/dist \
|
|
@@ -181,19 +181,23 @@ tar.gz:
|
|
|
tar --transform='flags=r;s|-s390x||' -zcvf dist/flannel-$(TAG)-linux-s390x.tar.gz -C dist flanneld-s390x mk-docker-opts.sh ../README.md
|
|
|
tar -tvf dist/flannel-$(TAG)-linux-s390x.tar.gz
|
|
|
|
|
|
-release-tests: bash_unit
|
|
|
+release-tests: release-etcd-tests release-k8s-tests
|
|
|
+
|
|
|
+release-etcd-tests: bash_unit
|
|
|
# Run the functional tests with different etcd versions.
|
|
|
ETCD_IMG="quay.io/coreos/etcd:latest" ./bash_unit dist/functional-test.sh
|
|
|
ETCD_IMG="quay.io/coreos/etcd:v3.2.7" ./bash_unit dist/functional-test.sh
|
|
|
- ETCD_IMG="quay.io/coreos/etcd:v3.1.10" ./bash_unit dist/functional-test.sh
|
|
|
- ETCD_IMG="quay.io/coreos/etcd:v3.0.17" ./bash_unit dist/functional-test.sh
|
|
|
# Etcd v2 docker image format is different. Override the etcd binary location so it works.
|
|
|
ETCD_IMG="quay.io/coreos/etcd:v2.3.8" ETCD_LOCATION=" " ./bash_unit dist/functional-test.sh
|
|
|
|
|
|
+release-k8s-tests: bash_unit
|
|
|
# Run the functional tests with different k8s versions. Currently these are the latest point releases.
|
|
|
# This list should be updated during the release process.
|
|
|
- K8S_VERSION="1.7.6" ./bash_unit dist/functional-test-k8s.sh
|
|
|
- K8S_VERSION="1.6.10" ./bash_unit dist/functional-test-k8s.sh
|
|
|
+ K8S_VERSION="1.17.3" HYPERKUBE_CMD=" " HYPERKUBE_APISERVER_CMD="kube-apiserver" ./bash_unit dist/functional-test-k8s.sh
|
|
|
+ K8S_VERSION="1.16.7" HYPERKUBE_CMD=" " HYPERKUBE_APISERVER_CMD="kube-apiserver" ./bash_unit dist/functional-test-k8s.sh
|
|
|
+ K8S_VERSION="1.15.10" HYPERKUBE_CMD=" " HYPERKUBE_APISERVER_CMD="kube-apiserver" ./bash_unit dist/functional-test-k8s.sh
|
|
|
+ # K8S_VERSION="1.7.6" ./bash_unit dist/functional-test-k8s.sh
|
|
|
+ # K8S_VERSION="1.6.10" ./bash_unit dist/functional-test-k8s.sh
|
|
|
# K8S_VERSION="1.5.7" ./bash_unit dist/functional-test-k8s.sh #kube-flannel.yml is incompatible
|
|
|
# K8S_VERSION="1.4.12" ./bash_unit dist/functional-test-k8s.sh #kube-flannel.yml is incompatible
|
|
|
# K8S_VERSION="1.3.10" ./bash_unit dist/functional-test-k8s.sh #kube-flannel.yml is incompatible
|