Skip to content

Commit 9198f72

Browse files
feat(run-integration-test): Add k3s and RKE2 cluster mappings (#21)
Co-authored-by: Nick <[email protected]>
1 parent 5f0d68e commit 9198f72

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
lines changed

run-integration-test/README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,33 @@
44
55
This action runs an operator integration test. It does the following work:
66

7-
1. Create a test cluster on-the-fly using the requested Kubernetes version and distribution via
8-
Replicated.
7+
1. Create a test cluster on-the-fly using the requested Kubernetes version, distribution and node
8+
architecture via Replicated. See [Test Platform Triple](#test-platform-triple) for more details.
99
2. Run the integration test based on the provided test parameters.
1010
3. Delete the cluster of the tests are done and send out a notification on failure.
1111

12+
## Test Platform Triple
13+
14+
The [`test-platform`](#inputs) input expects a test platform triple to select the appropriate node
15+
architecture and Kubernetes distribution & version. The triple format is
16+
`<DISTRIBUTION>-<VERSION>-<ARCHITECTURE>`, eg. `kind-1.31.2-amd64` or `gke-1.31-arm64`.
17+
18+
Each distribution supports different instance types
19+
based on the cloud vendor machine names. This mapping is done via the `instances.yml` file. Based
20+
on this file, the following distributions are supported: `eks`, `gke`, `aks`, `kind`, `k3s`, `rke2`.
21+
There is no mapping for `oke` yet.
22+
23+
Supported Kubernetes version can be inspected on the official Replicated documentation
24+
[page][supported-clusters]. Supported architectures are `amd64` and `arm64`.
25+
1226
## Inputs and Outputs
1327

1428
> [!TIP]
1529
> For descriptions of the inputs and outputs, see the complete [run-integration-test] action.
1630
1731
### Inputs
1832

19-
- `test-platform`(required, eg: `kind-1.31.0-amd64`)
33+
- `test-platform`(required, eg: `kind-1.31.2-amd64`)
2034
- `test-run` (required, `test-suite` or `test`)
2135
- `test-parameter` (defaults to `smoke`)
2236
- `replicated-api-token` (required)
@@ -26,4 +40,5 @@ This action runs an operator integration test. It does the following work:
2640
- `start-time`
2741
- `end-time`
2842

43+
[supported-clusters]: https://docs.replicated.com/vendor/testing-supported-clusters
2944
[run-integration-test]: ./action.yml

run-integration-test/instances.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
########################
2+
# Cloud based clusters #
3+
########################
4+
5+
# https://docs.replicated.com/vendor/testing-supported-clusters#eks
16
eks:
27
arm64:
38
small: m7g.large
@@ -8,6 +13,7 @@ eks:
813
medium: m6i.2xlarge
914
large: m6i.4xlarge
1015

16+
# https://docs.replicated.com/vendor/testing-supported-clusters#gke
1117
gke:
1218
arm64:
1319
small: t2a-standard-2
@@ -18,6 +24,7 @@ gke:
1824
medium: e2-standard-8
1925
large: e2-standard-16
2026

27+
# https://docs.replicated.com/vendor/testing-supported-clusters#aks
2128
aks:
2229
arm64:
2330
small: Standard_D2ps_v5
@@ -28,8 +35,27 @@ aks:
2835
medium: Standard_DS3_v2
2936
large: Standard_DS5_v2
3037

38+
##################################
39+
# VM based clusters (only AMD64) #
40+
##################################
41+
42+
# https://docs.replicated.com/vendor/testing-supported-clusters#kind
3143
kind:
3244
amd64:
3345
small: r1.small
3446
medium: r1.medium
3547
large: r1.large
48+
49+
# https://docs.replicated.com/vendor/testing-supported-clusters#k3s
50+
k3s:
51+
amd64:
52+
small: r1.small
53+
medium: r1.medium
54+
large: r1.large
55+
56+
# https://docs.replicated.com/vendor/testing-supported-clusters#rke2-beta
57+
rke2:
58+
amd64:
59+
small: r1.small
60+
medium: r1.medium
61+
large: r1.large

0 commit comments

Comments
 (0)