@@ -48,8 +48,6 @@ CRD_DOCS_TEMPLATE ?= docs/assets/template
4848
4949INGRESS_VERSION ?= v1
5050
51- export KUBECONFIG = /tmp/$(KIND_NAME ) .kubeconfig
52-
5351# go
5452VERSYM ="github.com/apache/apisix-ingress-controller/internal/version._buildVersion"
5553GITSHASYM ="github.com/apache/apisix-ingress-controller/internal/version._buildGitRevision"
@@ -143,7 +141,6 @@ kind-e2e-test: kind-up build-image kind-load-images e2e-test
143141# Utilize Kind or modify the e2e tests to load the image locally, enabling compatibility with other vendors.
144142.PHONY : e2e-test
145143e2e-test : adc
146- @kind get kubeconfig --name $(KIND_NAME ) > $$ KUBECONFIG
147144 DASHBOARD_VERSION=$(DASHBOARD_VERSION ) go test $(TEST_DIR ) -test.timeout=$(TEST_TIMEOUT ) -v -ginkgo.v -ginkgo.focus=" $( TEST_FOCUS) " -ginkgo.label-filter=" $( TEST_LABEL) "
148145
149146.PHONY : download-api7ee3-chart
@@ -189,8 +186,6 @@ kind-up:
189186 @kind get clusters 2>&1 | grep -v $(KIND_NAME ) \
190187 && kind create cluster --name $(KIND_NAME ) --image $(KIND_NODE_IMAGE ) \
191188 || echo " kind cluster already exists"
192- @kind get kubeconfig --name $(KIND_NAME ) > $$ KUBECONFIG
193- kubectl wait --for=condition=Ready nodes --all
194189
195190.PHONY : kind-down
196191kind-down :
@@ -277,7 +272,7 @@ run: manifests generate fmt vet ## Run a controller from your host.
277272# More info: https://docs.docker.com/develop/develop-images/build_enhancements/
278273.PHONY : docker-build
279274docker-build : set-e2e-goos build # # Build docker image with the manager.
280- $(CONTAINER_TOOL ) build -t ${IMG} -f Dockerfile .
275+ $(CONTAINER_TOOL ) build --build-arg TARGETARCH= ${GOARCH} - t ${IMG} -f Dockerfile .
281276
282277.PHONY : docker-push
283278docker-push : # # Push docker image with the manager.
0 commit comments