-
Notifications
You must be signed in to change notification settings - Fork 5
89 lines (87 loc) · 2.4 KB
/
integration_test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: e2e test
on:
pull_request:
branches:
- main
push:
paths:
- controllers/**
- compute/**
- plugin/**
- ./main.go
- ./go.mod
- config/**
- ./Dockerfile
- ./bundle.Dockerfile
- ./Makefile
- e2e-test/**
jobs:
scale-test:
runs-on: ubuntu-latest
env:
DAEMON_IMAGE_NAME: e2e-test/daemon-stub
CNI_IMAGE_NAME: e2e-test/cni-stub
CONTROLLER_IMAGE_NAME: e2e-test/multi-nic-cni-controller
CLUSTER_NAME: kind-500
steps:
- uses: actions/checkout@v2
- name: Prepare tools
run: |
sudo chmod +x ./e2e-test/script.sh
- name: Tidy
run: |
go mod tidy
- name: Build controller
uses: docker/build-push-action@v2
with:
context: .
push: false
tags: |
${{ env.CONTROLLER_IMAGE_NAME }}:latest
file: ./Dockerfile
- name: Build daemon-stub
uses: docker/build-push-action@v2
with:
context: e2e-test/daemon-stub
push: false
tags: |
${{ env.DAEMON_IMAGE_NAME }}:latest
file: ./e2e-test/daemon-stub/Dockerfile
- name: Build cni-stub
uses: docker/build-push-action@v2
with:
context: e2e-test/cni-stub
push: false
tags: |
${{ env.CNI_IMAGE_NAME }}:latest
file: ./e2e-test/cni-stub/Dockerfile
- uses: engineerd/[email protected]
with:
wait: 300s
version: v0.11.1
image: kindest/node:v1.20.7
config: ./e2e-test/deploy/kind/kind-1000.yaml
name: ${{ env.CLUSTER_NAME }}
- name: Load images to kind
working-directory: ./e2e-test
run: make load-images
- name: Prepare controller
working-directory: ./e2e-test
run: make prepare-controller
shell: bash
- name: Test add/delete scale=200
working-directory: ./e2e-test
run: ./script.sh test_step_scale
shell: bash
- name: Test allocate/deallocate
working-directory: ./e2e-test
run: ./script.sh test_allocate
shell: bash
- name: Test taint/untaint
working-directory: ./e2e-test
run: ./script.sh test_taint
shell: bash
- name: Test resilience
working-directory: ./e2e-test
run: ./script.sh test_resilience
shell: bash