From 07c51f946147b4dbca73e7cfc98350607b77d0c5 Mon Sep 17 00:00:00 2001 From: Shaad7 Date: Wed, 23 Aug 2023 11:01:23 +0600 Subject: [PATCH] Add created template Signed-off-by: Shaad7 --- .../cluster-template-ci-gke-custom-subnet.yaml | 2 +- test/e2e/e2e_test.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/e2e/data/infrastructure-gcp/cluster-template-ci-gke-custom-subnet.yaml b/test/e2e/data/infrastructure-gcp/cluster-template-ci-gke-custom-subnet.yaml index 381fcc772..13ea72977 100644 --- a/test/e2e/data/infrastructure-gcp/cluster-template-ci-gke-custom-subnet.yaml +++ b/test/e2e/data/infrastructure-gcp/cluster-template-ci-gke-custom-subnet.yaml @@ -29,7 +29,7 @@ spec: subnets: - name: "${GCP_SUBNET_NAME}" cidrBlock: "${GCP_SUBNET_CIDR}" - region: {"$GCP_REGION"} + region: "${GCP_REGION}" --- apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 kind: GCPManagedControlPlane diff --git a/test/e2e/e2e_test.go b/test/e2e/e2e_test.go index 9f1aa7f48..3fab807f9 100644 --- a/test/e2e/e2e_test.go +++ b/test/e2e/e2e_test.go @@ -184,8 +184,8 @@ var _ = Describe("Workload cluster creation", func() { }) Context("Creating a single control-plane cluster", func() { - It("Should create a cluster with 1 worker node and can be scaled", func() { - By("Initializes with 1 worker node") + It("Should create a cluster with 3 worker node with custom subnet", func() { + By("Initializes with 3 worker node") clusterctl.ApplyClusterTemplateAndWait(ctx, clusterctl.ApplyClusterTemplateAndWaitInput{ ClusterProxy: bootstrapClusterProxy, ConfigCluster: clusterctl.ConfigClusterInput{ @@ -193,12 +193,12 @@ var _ = Describe("Workload cluster creation", func() { ClusterctlConfigPath: clusterctlConfigPath, KubeconfigPath: bootstrapClusterProxy.GetKubeconfigPath(), InfrastructureProvider: clusterctl.DefaultInfrastructureProvider, - Flavor: clusterctl.DefaultFlavor, + Flavor: "ci-gke-custom-subnet", Namespace: namespace.Name, ClusterName: clusterName, KubernetesVersion: e2eConfig.GetVariable(KubernetesVersion), ControlPlaneMachineCount: pointer.Int64Ptr(1), - WorkerMachineCount: pointer.Int64Ptr(1), + WorkerMachineCount: pointer.Int64Ptr(3), ClusterctlVariables: map[string]string{ "GCP_SUBNET_NAME": "capg-test-subnet", "GCP_SUBNET_CIDR": "172.20.0.0/16",