File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7777 KIND_NODE_IMAGE : kindest/node:v1.18.20@sha256:38a8726ece5d7867fb0ede63d718d27ce2d41af519ce68be5ae7fcca563537ed
7878 run : |
7979 make kind-up
80+ KIND_NODE_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' apisix-ingress-cluster-control-plane)
81+ echo $KIND_NODE_IP
82+
83+ kubectl config get-clusters
84+ kubectl config set-cluster kind-apisix-ingress-cluster --server=https://$KIND_NODE_IP:6443
85+ kubectl wait --for=condition=Ready nodes --all
8086
8187 - name : Build images
8288 env :
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ CRD_DOCS_TEMPLATE ?= docs/assets/template
4848
4949INGRESS_VERSION ?= v1
5050
51- export KUBECONFIG = /tmp/$(KIND_NAME ) .kubeconfig
51+ # export KUBECONFIG = /tmp/$(KIND_NAME).kubeconfig
5252
5353# go
5454VERSYM ="github.com/apache/apisix-ingress-controller/internal/version._buildVersion"
@@ -143,7 +143,6 @@ kind-e2e-test: kind-up build-image kind-load-images e2e-test
143143# Utilize Kind or modify the e2e tests to load the image locally, enabling compatibility with other vendors.
144144.PHONY : e2e-test
145145e2e-test : adc
146- @kind get kubeconfig --name $(KIND_NAME ) > $$ KUBECONFIG
147146 DASHBOARD_VERSION=$(DASHBOARD_VERSION ) go test $(TEST_DIR ) -test.timeout=$(TEST_TIMEOUT ) -v -ginkgo.v -ginkgo.focus=" $( TEST_FOCUS) " -ginkgo.label-filter=" $( TEST_LABEL) "
148147
149148.PHONY : download-api7ee3-chart
@@ -189,8 +188,6 @@ kind-up:
189188 @kind get clusters 2>&1 | grep -v $(KIND_NAME ) \
190189 && kind create cluster --name $(KIND_NAME ) --image $(KIND_NODE_IMAGE ) \
191190 || echo " kind cluster already exists"
192- @kind get kubeconfig --name $(KIND_NAME ) > $$ KUBECONFIG
193- kubectl wait --for=condition=Ready nodes --all
194191
195192.PHONY : kind-down
196193kind-down :
You can’t perform that action at this time.
0 commit comments