Skip to content

Commit 07c51f9

Browse files
Add created template
Signed-off-by: Shaad7 <[email protected]>
1 parent c26ce0a commit 07c51f9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/e2e/data/infrastructure-gcp/cluster-template-ci-gke-custom-subnet.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ spec:
2929
subnets:
3030
- name: "${GCP_SUBNET_NAME}"
3131
cidrBlock: "${GCP_SUBNET_CIDR}"
32-
region: {"$GCP_REGION"}
32+
region: "${GCP_REGION}"
3333
---
3434
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
3535
kind: GCPManagedControlPlane

test/e2e/e2e_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,21 +184,21 @@ var _ = Describe("Workload cluster creation", func() {
184184
})
185185

186186
Context("Creating a single control-plane cluster", func() {
187-
It("Should create a cluster with 1 worker node and can be scaled", func() {
188-
By("Initializes with 1 worker node")
187+
It("Should create a cluster with 3 worker node with custom subnet", func() {
188+
By("Initializes with 3 worker node")
189189
clusterctl.ApplyClusterTemplateAndWait(ctx, clusterctl.ApplyClusterTemplateAndWaitInput{
190190
ClusterProxy: bootstrapClusterProxy,
191191
ConfigCluster: clusterctl.ConfigClusterInput{
192192
LogFolder: clusterctlLogFolder,
193193
ClusterctlConfigPath: clusterctlConfigPath,
194194
KubeconfigPath: bootstrapClusterProxy.GetKubeconfigPath(),
195195
InfrastructureProvider: clusterctl.DefaultInfrastructureProvider,
196-
Flavor: clusterctl.DefaultFlavor,
196+
Flavor: "ci-gke-custom-subnet",
197197
Namespace: namespace.Name,
198198
ClusterName: clusterName,
199199
KubernetesVersion: e2eConfig.GetVariable(KubernetesVersion),
200200
ControlPlaneMachineCount: pointer.Int64Ptr(1),
201-
WorkerMachineCount: pointer.Int64Ptr(1),
201+
WorkerMachineCount: pointer.Int64Ptr(3),
202202
ClusterctlVariables: map[string]string{
203203
"GCP_SUBNET_NAME": "capg-test-subnet",
204204
"GCP_SUBNET_CIDR": "172.20.0.0/16",

0 commit comments

Comments
 (0)