Skip to content

Commit 49c55ae

Browse files
committed
f
1 parent 2bbb11c commit 49c55ae

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/e2e-test-k8s.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ jobs:
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:

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ CRD_DOCS_TEMPLATE ?= docs/assets/template
4848

4949
INGRESS_VERSION ?= v1
5050

51-
export KUBECONFIG = /tmp/$(KIND_NAME).kubeconfig
51+
#export KUBECONFIG = /tmp/$(KIND_NAME).kubeconfig
5252

5353
# go
5454
VERSYM="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
145145
e2e-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
196193
kind-down:

0 commit comments

Comments
 (0)