diff --git a/.github/actions/setup-e2e/action.yaml b/.github/actions/setup-e2e/action.yaml index 6cf17458096..59ec9a0a141 100644 --- a/.github/actions/setup-e2e/action.yaml +++ b/.github/actions/setup-e2e/action.yaml @@ -89,6 +89,9 @@ runs: if: ${{ inputs.require_minikube == 'true' }} shell: bash run: | + # TODO: consider use apt install for ci + apt-get update + apt-get install -y iptables conntrack make minikube/install make minikube/start - name: Check Kubernetes cluster diff --git a/Makefile b/Makefile index de1572c19e8..a7374025272 100644 --- a/Makefile +++ b/Makefile @@ -373,6 +373,8 @@ E2E_REMOVE_FROM ?= 0 TEST_RESULT_DIR ?= /tmp +MINIKUBE_DRIVER = none + include Makefile.d/functions.mk .PHONY: maintainer diff --git a/Makefile.d/minikube.mk b/Makefile.d/minikube.mk index e668e026305..f557c2c7d12 100644 --- a/Makefile.d/minikube.mk +++ b/Makefile.d/minikube.mk @@ -25,7 +25,7 @@ $(BINDIR)/minikube: # Only use this for development related to Volume Snapshots. Usually k3d is faster. .PHONY: minikube/start minikube/start: - minikube start --force + minikube start --force --driver=$(MINIKUBE_DRIVER) minikube addons enable volumesnapshots minikube addons enable csi-hostpath-driver minikube addons disable storage-provisioner