You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/e2e/data/infrastructure-aws/README.md
+38
Original file line number
Diff line number
Diff line change
@@ -32,3 +32,41 @@ In e2e tests, this manifest can be used by setting the flavor to `custom` (clust
32
32
},
33
33
}, result)
34
34
```
35
+
36
+
## ClusterClass Notes
37
+
38
+
If you want to add a new ClusterClass based flavour for a test you will need to do the following:
39
+
40
+
1. Create a new folder under `./test/e2e/data/infrastructure-aww/withclusterclass/kustomize_sources`
41
+
2. Create a file called `cluster-template.yaml` with contains:
42
+
- A single **Cluster** resource
43
+
- Uses a topology
44
+
- The class name used by the topology is important. We'll use `eks-e2e` as an example.
45
+
3. Create a new file for your clusterclass (including templates). It must be named `clusterclass-[CLASSNAME].yaml`. So in our example it would be name clusterclass-eks-e2e.yaml.
46
+
4. Create a file called `kustomization.yaml` with the following contents as a minumim:
47
+
48
+
```yaml
49
+
resources:
50
+
- cluster-template.yaml
51
+
generatorOptions:
52
+
disableNameSuffixHash: true
53
+
labels:
54
+
type: generated
55
+
annotations:
56
+
note: generated
57
+
```
58
+
59
+
5. Update the e2e test config file (`./test/e2e/data/e2e_conf.yaml` or `./test/e2e/data/e2e_eks_conf.yaml`) to include the files, specifically for **v9.9.99** of the **aws**c provider.. For example:
Run `make generate-test-flavors` and check that the cluster template has been created in `test/e2e/data/infrastructure-aws/withclusterclass/generated`.
71
+
72
+
Check the artifacts of the Prow job if it fails. Navigate to `artifacts/repository/infrastructure-aws/v9.9.99/` and check that the clusterclass and cluster template files are there.
0 commit comments