Skip to content

Commit

Permalink
chore: use in-memory kind for e2e tests (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
JorTurFer authored Oct 5, 2023
1 parent d374cbe commit e8b1c01
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/kind.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit e8b1c01

Please sign in to comment.