Skip to content

Commit fa34a54

Browse files
committed
test: combine class and cluster definitions in a single file
Signed-off-by: Carlos Salas <[email protected]>
1 parent 5093714 commit fa34a54

File tree

3 files changed

+48
-49
lines changed

3 files changed

+48
-49
lines changed

test/e2e/config/gcp-ci.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ providers:
6666
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/cluster-template-upgrades.yaml"
6767
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/cluster-template-md-remediation.yaml"
6868
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/cluster-template-kcp-remediation.yaml"
69-
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/cluster-template-topology.yaml"
70-
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/clusterclass-quick-start.yaml"
69+
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/cluster-template-ci-topology.yaml"
7170
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/cluster-template-ci-with-creds.yaml"
7271
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/cluster-template-ci-gke.yaml"
7372
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/cluster-template-ci-gke-autopilot.yaml"

test/e2e/data/infrastructure-gcp/clusterclass-quick-start.yaml renamed to test/e2e/data/infrastructure-gcp/cluster-template-ci-topology.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,50 @@ spec:
165165
name: '{{ ds.meta_data.local_hostname.split(".")[0] }}'
166166
kubeletExtraArgs:
167167
cloud-provider: gce
168+
---
169+
apiVersion: cluster.x-k8s.io/v1beta1
170+
kind: Cluster
171+
metadata:
172+
name: "${CLUSTER_NAME}"
173+
labels:
174+
cni: "${CLUSTER_NAME}-crs-cni"
175+
spec:
176+
clusterNetwork:
177+
pods:
178+
cidrBlocks: ["192.168.0.0/16"]
179+
topology:
180+
class: quick-start
181+
version: "${KUBERNETES_VERSION}"
182+
controlPlane:
183+
replicas: ${CONTROL_PLANE_MACHINE_COUNT}
184+
workers:
185+
machineDeployments:
186+
- class: "default-worker"
187+
name: "md-0"
188+
replicas: ${WORKER_MACHINE_COUNT}
189+
variables:
190+
- name: region
191+
value: ${GCP_REGION}
192+
- name: controlPlaneMachineType
193+
value: ${GCP_CONTROL_PLANE_MACHINE_TYPE}
194+
- name: workerMachineType
195+
value: ${GCP_NODE_MACHINE_TYPE}
196+
---
197+
apiVersion: v1
198+
kind: ConfigMap
199+
metadata:
200+
name: "${CLUSTER_NAME}-crs-cni"
201+
data: ${CNI_RESOURCES}
202+
---
203+
apiVersion: addons.cluster.x-k8s.io/v1beta1
204+
kind: ClusterResourceSet
205+
metadata:
206+
name: "${CLUSTER_NAME}-crs-cni"
207+
spec:
208+
strategy: ApplyOnce
209+
clusterSelector:
210+
matchLabels:
211+
cni: "${CLUSTER_NAME}-crs-cni"
212+
resources:
213+
- name: "${CLUSTER_NAME}-crs-cni"
214+
kind: ConfigMap

test/e2e/data/infrastructure-gcp/cluster-template-topology.yaml

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)