-
Notifications
You must be signed in to change notification settings - Fork 35
93 lines (86 loc) · 2.68 KB
/
e2e-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
90
91
92
93
---
name: E2E Cluster Upgrade
on:
workflow_dispatch:
inputs:
eksupgrade_version:
type: choice
options: ['latest', 'main']
description: Select the eksupgrade version you want to use
default: 'latest'
trigger_tests:
type: choice
options: ['true', 'false']
description: Select if you want to trigger cluster creation and tests
default: 'true'
trigger_destroy:
type: choice
options: ['true', 'false']
default: 'true'
description: Destroy active test clusters ?
concurrency: upgrade-test
jobs:
cluster-upgrade-checks:
if: ${{inputs.trigger_tests == 'true'}}
permissions:
id-token: write
contents: read
strategy:
matrix:
include:
- current_version: 1.22
cluster_suffix: 1-22
target_version: 1.23
target_region: "us-east-2"
- current_version: 1.22
cluster_suffix: 1-22
target_version: 1.23
target_region: "us-east-1"
- current_version: 1.23
cluster_suffix: 1-23
target_version: 1.24
target_region: "us-east-2"
- current_version: 1.24
cluster_suffix: 1-24
target_version: 1.25
target_region: "us-east-1"
uses: ./.github/workflows/e2e-test-template.yaml
with:
eksupgrade_version: ${{github.event.inputs.eksupgrade_version}}
trigger_tests: ${{github.event.inputs.trigger_tests}}
trigger_destroy: ${{github.event.inputs.trigger_destroy}}
current_version: ${{matrix.current_version}}
cluster_suffix: ${{matrix.cluster_suffix}}
target_version: ${{matrix.target_version}}
target_region: ${{matrix.target_region}}
secrets:
git_role: ${{ secrets.ROLE_TO_ASSUME }}
destroy-cluster:
if: ${{inputs.trigger_destroy == 'true' && inputs.trigger_tests == 'false' }}
name: Delete Active Clusters
timeout-minutes: 120
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
environment: dev
strategy:
matrix:
include:
- eks_version: 1.22
target_region: "us-east-2"
- eks_version: 1.22
target_region: "us-east-1"
- eks_version: 1.23
target_region: "us-east-2"
- eks_version: 1.24
target_region: "us-east-1"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Delete cluster
uses: './.github/actions/delete-cluster'
with:
eks_version: ${{matrix.eks_version}}
iam_role: ${{ secrets.ROLE_TO_ASSUME }}
region: ${{matrix.target_region}}