Skip to content

Commit 0c71ffa

Browse files
authored
run kind for e2e tests with kube-proxy in ipvs mode (#240)
2 parents df56b4d + 087b4a3 commit 0c71ffa

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,10 @@ kind-load: docker-build kind ## Build and upload docker image to the local Kind
203203
.PHONY: kind-create
204204
kind-create: kind yq ## Create kubernetes cluster using Kind.
205205
@if ! $(KIND) get clusters | grep -q $(KIND_CLUSTER_NAME); then \
206-
$(KIND) create cluster --name $(KIND_CLUSTER_NAME) --image kindest/node:$(K8S_VERSION); \
207-
fi
208-
@if ! $(CONTAINER_TOOL) container inspect $$($(KIND) get nodes) | $(YQ) e '.[0].Config.Image' | grep -q $(K8S_VERSION); then \
206+
$(KIND) create cluster --name $(KIND_CLUSTER_NAME) --image kindest/node:$(K8S_VERSION) --config test/e2e/config.yaml; \
207+
elif ! $(CONTAINER_TOOL) container inspect $$($(KIND) get nodes --name $(KIND_CLUSTER_NAME)) | $(YQ) e '.[0].Config.Image' | grep -q $(K8S_VERSION); then \
209208
$(KIND) delete cluster --name $(KIND_CLUSTER_NAME); \
210-
$(KIND) create cluster --name $(KIND_CLUSTER_NAME) --image kindest/node:$(K8S_VERSION); \
209+
$(KIND) create cluster --name $(KIND_CLUSTER_NAME) --image kindest/node:$(K8S_VERSION) --config test/e2e/config.yaml; \
211210
fi
212211

213212
.PHONY: kind-delete

test/e2e/config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
kind: Cluster
2+
apiVersion: kind.x-k8s.io/v1alpha4
3+
networking:
4+
kubeProxyMode: "ipvs"

0 commit comments

Comments
 (0)