@@ -70,7 +70,7 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
70
70
defer shared .ReleaseResources (requiredResources , config .GinkgoConfig .ParallelNode , flock .New (shared .ResourceQuotaFilePath ))
71
71
72
72
ginkgo .By ("Creating cluster with a single worker" )
73
- clusterName := fmt .Sprintf ("cluster- %s-%s" , specName , util .RandomString (6 ))
73
+ clusterName := fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 ))
74
74
75
75
clusterctl .ApplyClusterTemplateAndWait (ctx , clusterctl.ApplyClusterTemplateAndWaitInput {
76
76
ClusterProxy : e2eCtx .Environment .BootstrapClusterProxy ,
@@ -118,7 +118,7 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
118
118
defer shared .DumpSpecResourcesAndCleanup (ctx , "" , namespace , e2eCtx )
119
119
Expect (shared .SetMultitenancyEnvVars (e2eCtx .AWSSession )).To (Succeed ())
120
120
ginkgo .By ("Creating cluster" )
121
- clusterName := fmt .Sprintf ("cluster- %s-%s" , specName , util .RandomString (6 ))
121
+ clusterName := fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 ))
122
122
clusterctl .ApplyClusterTemplateAndWait (ctx , clusterctl.ApplyClusterTemplateAndWaitInput {
123
123
ClusterProxy : e2eCtx .Environment .BootstrapClusterProxy ,
124
124
ConfigCluster : clusterctl.ConfigClusterInput {
@@ -158,7 +158,7 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
158
158
namespace := shared .SetupSpecNamespace (ctx , specName , e2eCtx )
159
159
defer shared .DumpSpecResourcesAndCleanup (ctx , "" , namespace , e2eCtx )
160
160
ginkgo .By ("Creating first cluster with single control plane" )
161
- cluster1Name := fmt .Sprintf ("cluster- %s-%s" , specName , util .RandomString (6 ))
161
+ cluster1Name := fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 ))
162
162
shared .SetEnvVar ("USE_CI_ARTIFACTS" , "true" , false )
163
163
tagPrefix := "v"
164
164
searchSemVer , err := semver .Make (strings .TrimPrefix (e2eCtx .E2EConfig .GetVariable (shared .KubernetesVersion ), tagPrefix ))
@@ -214,7 +214,7 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
214
214
defer shared .DumpSpecResourcesAndCleanup (ctx , "" , namespace , e2eCtx )
215
215
216
216
ginkgo .By ("Creating first cluster with single control plane" )
217
- cluster1Name := fmt .Sprintf ("cluster- %s-%s" , specName , util .RandomString (6 ))
217
+ cluster1Name := fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 ))
218
218
configCluster := defaultConfigCluster (cluster1Name , namespace .Name )
219
219
configCluster .KubernetesVersion = e2eCtx .E2EConfig .GetVariable (shared .PreCSIKubernetesVer )
220
220
configCluster .WorkerMachineCount = pointer .Int64Ptr (1 )
@@ -281,7 +281,7 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
281
281
namespace := shared .SetupNamespace (ctx , specName , e2eCtx )
282
282
defer shared .DumpSpecResourcesAndCleanup (ctx , "" , namespace , e2eCtx )
283
283
ginkgo .By ("Creating first cluster with single control plane" )
284
- cluster1Name := fmt .Sprintf ("cluster- %s-%s" , specName , util .RandomString (6 ))
284
+ cluster1Name := fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 ))
285
285
286
286
configCluster := defaultConfigCluster (cluster1Name , namespace .Name )
287
287
configCluster .KubernetesVersion = e2eCtx .E2EConfig .GetVariable (shared .PreCSIKubernetesVer )
@@ -351,7 +351,7 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
351
351
defer shared .DumpSpecResourcesAndCleanup (ctx , "" , namespace , e2eCtx )
352
352
353
353
ginkgo .By ("Creating first cluster with single control plane" )
354
- cluster1Name := fmt .Sprintf ("cluster- %s-%s" , specName , util .RandomString (6 ))
354
+ cluster1Name := fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 ))
355
355
configCluster := defaultConfigCluster (cluster1Name , namespace .Name )
356
356
configCluster .KubernetesVersion = e2eCtx .E2EConfig .GetVariable (shared .PreCSIKubernetesVer )
357
357
@@ -420,7 +420,7 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
420
420
defer shared .DumpSpecResourcesAndCleanup (ctx , "" , namespace , e2eCtx )
421
421
422
422
ginkgo .By ("Creating a cluster" )
423
- clusterName := fmt .Sprintf ("cluster- %s-%s" , specName , util .RandomString (6 ))
423
+ clusterName := fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 ))
424
424
configCluster := defaultConfigCluster (clusterName , namespace .Name )
425
425
configCluster .ControlPlaneMachineCount = pointer .Int64Ptr (1 )
426
426
configCluster .WorkerMachineCount = pointer .Int64Ptr (1 )
@@ -453,7 +453,7 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
453
453
namespace := shared .SetupSpecNamespace (ctx , specName , e2eCtx )
454
454
defer shared .DumpSpecResourcesAndCleanup (ctx , "" , namespace , e2eCtx )
455
455
ginkgo .By ("Creating a cluster" )
456
- clusterName := fmt .Sprintf ("cluster- %s-%s" , specName , util .RandomString (6 ))
456
+ clusterName := fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 ))
457
457
configCluster := defaultConfigCluster (clusterName , namespace .Name )
458
458
_ , _ , _ = createCluster (ctx , configCluster , result )
459
459
@@ -504,7 +504,7 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
504
504
namespace := shared .SetupSpecNamespace (ctx , specName , e2eCtx )
505
505
defer shared .DumpSpecResourcesAndCleanup (ctx , "" , namespace , e2eCtx )
506
506
ginkgo .By ("Creating a cluster" )
507
- clusterName := fmt .Sprintf ("cluster- %s-%s" , specName , util .RandomString (6 ))
507
+ clusterName := fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 ))
508
508
configCluster := defaultConfigCluster (clusterName , namespace .Name )
509
509
configCluster .ControlPlaneMachineCount = pointer .Int64Ptr (3 )
510
510
configCluster .Flavor = shared .MultiAzFlavor
@@ -566,7 +566,7 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
566
566
e2eCtx .Environment .Namespaces [ns2 ] = cf2
567
567
568
568
ginkgo .By ("Creating first cluster" )
569
- cluster1Name := fmt .Sprintf ("cluster- %s-%s" , specName , util .RandomString (6 ))
569
+ cluster1Name := fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 ))
570
570
configCluster := defaultConfigCluster (cluster1Name , ns1 .Name )
571
571
configCluster .WorkerMachineCount = pointer .Int64Ptr (1 )
572
572
configCluster .Flavor = shared .LimitAzFlavor
@@ -581,7 +581,7 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
581
581
framework .DiscoveryAndWaitForMachineDeployments (ctx , framework.DiscoveryAndWaitForMachineDeploymentsInput {Cluster : cluster1 , Lister : e2eCtx .Environment .BootstrapClusterProxy .GetClient ()}, e2eCtx .E2EConfig .GetIntervals ("" , "wait-worker-nodes" )... )
582
582
583
583
ginkgo .By ("Creating second cluster" )
584
- cluster2Name := fmt .Sprintf ("cluster- %s-%s" , specName , util .RandomString (6 ))
584
+ cluster2Name := fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 ))
585
585
configCluster = defaultConfigCluster (cluster2Name , ns2 .Name )
586
586
configCluster .WorkerMachineCount = pointer .Int64Ptr (1 )
587
587
configCluster .Flavor = shared .LimitAzFlavor
@@ -634,13 +634,13 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
634
634
namespace := shared .SetupSpecNamespace (ctx , specName , e2eCtx )
635
635
defer shared .DumpSpecResourcesAndCleanup (ctx , "" , namespace , e2eCtx )
636
636
ginkgo .By ("Creating first cluster with single control plane" )
637
- cluster1Name := fmt .Sprintf ("cluster- %s-%s" , specName , util .RandomString (6 ))
637
+ cluster1Name := fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 ))
638
638
configCluster := defaultConfigCluster (cluster1Name , namespace .Name )
639
639
configCluster .Flavor = shared .LimitAzFlavor
640
640
cluster1 , _ , _ := createCluster (ctx , configCluster , result )
641
641
642
642
ginkgo .By ("Creating second cluster with single control plane" )
643
- cluster2Name := fmt .Sprintf ("cluster- %s-%s" , specName , util .RandomString (6 ))
643
+ cluster2Name := fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 ))
644
644
configCluster = defaultConfigCluster (cluster2Name , namespace .Name )
645
645
configCluster .Flavor = shared .LimitAzFlavor
646
646
cluster2 , _ , _ := createCluster (ctx , configCluster , result )
@@ -662,7 +662,7 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
662
662
namespace := shared .SetupSpecNamespace (ctx , specName , e2eCtx )
663
663
defer shared .DumpSpecResourcesAndCleanup (ctx , "" , namespace , e2eCtx )
664
664
ginkgo .By ("Creating a cluster" )
665
- clusterName := fmt .Sprintf ("cluster- %s-%s" , specName , util .RandomString (6 ))
665
+ clusterName := fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 ))
666
666
configCluster := defaultConfigCluster (clusterName , namespace .Name )
667
667
configCluster .WorkerMachineCount = pointer .Int64Ptr (1 )
668
668
configCluster .Flavor = shared .SpotInstancesFlavor
@@ -693,10 +693,10 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
693
693
var specName string
694
694
var namespace * corev1.Namespace
695
695
var requiredResources * shared.TestResource
696
- mgmtClusterName := fmt .Sprintf ("cluster- %s-%s" , specName , util .RandomString (6 ))
696
+ mgmtClusterName := fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 ))
697
697
mgmtClusterInfra := new (shared.AWSInfrastructure )
698
698
699
- wlClusterName := fmt .Sprintf ("cluster- %s-%s" , specName , util .RandomString (6 ))
699
+ wlClusterName := fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 ))
700
700
wlClusterInfra := new (shared.AWSInfrastructure )
701
701
702
702
var cPeering * ec2.VpcPeeringConnection
@@ -944,7 +944,7 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
944
944
specName := "functional-test-ignition-parameter"
945
945
namespace := shared .SetupSpecNamespace (ctx , specName , e2eCtx )
946
946
ginkgo .By ("Creating a cluster" )
947
- clusterName := fmt .Sprintf ("cluster- %s-%s" , specName , util .RandomString (6 ))
947
+ clusterName := fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 ))
948
948
configCluster := defaultConfigCluster (clusterName , namespace .Name )
949
949
configCluster .ControlPlaneMachineCount = pointer .Int64Ptr (1 )
950
950
configCluster .WorkerMachineCount = pointer .Int64Ptr (1 )
0 commit comments