From e8b1c015f05b0de41997cb2b28a849fb6d67484d Mon Sep 17 00:00:00 2001 From: Jorge Turrado Ferrero Date: Thu, 5 Oct 2023 08:53:23 +0200 Subject: [PATCH] chore: use in-memory kind for e2e tests (#805) --- .github/kind.yaml | 8 ++++++++ .github/workflows/e2e-tests.yaml | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .github/kind.yaml diff --git a/.github/kind.yaml b/.github/kind.yaml new file mode 100644 index 00000000..859b697b --- /dev/null +++ b/.github/kind.yaml @@ -0,0 +1,8 @@ +kind: Cluster +apiVersion: kind.x-k8s.io/v1alpha4 +kubeadmConfigPatches: + - | + kind: ClusterConfiguration + etcd: + local: + dataDir: /tmp/etcd # /tmp is mapped to tmpfs in kind's nodes diff --git a/.github/workflows/e2e-tests.yaml b/.github/workflows/e2e-tests.yaml index c07af026..b6311ee4 100644 --- a/.github/workflows/e2e-tests.yaml +++ b/.github/workflows/e2e-tests.yaml @@ -42,6 +42,7 @@ jobs: with: node_image: ${{ matrix.kindImage }} cluster_name: cluster + config: .github/kind.yaml - name: Generate images and push to the cluster run: | @@ -81,7 +82,7 @@ jobs: VERSION: ${{ github.sha }} arm_e2e_tests: - runs-on: http-add-on-e2e + runs-on: ARM64 needs: arm_image_generation name: Execute e2e test on ARM64 ${{ matrix.kubernetesVersion }} env: @@ -112,6 +113,7 @@ jobs: with: node_image: ${{ matrix.kindImage }} cluster_name: ${{ runner.name }} + config: .github/kind.yaml - name: Push images to the cluster run: |