@@ -40,7 +40,7 @@ var _ = Describe("Workload cluster creation", func() {
40
40
namespace * corev1.Namespace
41
41
cancelWatches context.CancelFunc
42
42
result * clusterctl.ApplyClusterTemplateAndWaitResult
43
- clusterName string
43
+ clusterNamePrefix string
44
44
clusterctlLogFolder string
45
45
)
46
46
@@ -52,7 +52,7 @@ var _ = Describe("Workload cluster creation", func() {
52
52
53
53
Expect (e2eConfig .Variables ).To (HaveKey (KubernetesVersion ))
54
54
55
- clusterName = fmt .Sprintf ("capg-e2e-%s" , util .RandomString (6 ))
55
+ clusterNamePrefix = fmt .Sprintf ("capg-e2e-%s" , util .RandomString (6 ))
56
56
57
57
// Setup a Namespace where to host objects for this spec and create a watcher for the namespace events.
58
58
namespace , cancelWatches = setupSpecNamespace (ctx , specName , bootstrapClusterProxy , artifactFolder )
@@ -81,6 +81,7 @@ var _ = Describe("Workload cluster creation", func() {
81
81
82
82
Context ("Creating a single control-plane cluster" , func () {
83
83
It ("Should create a cluster with 1 worker node and can be scaled" , func () {
84
+ clusterName := fmt .Sprintf ("%s-single" , clusterNamePrefix )
84
85
By ("Initializes with 1 worker node" )
85
86
clusterctl .ApplyClusterTemplateAndWait (ctx , clusterctl.ApplyClusterTemplateAndWaitInput {
86
87
ClusterProxy : bootstrapClusterProxy ,
@@ -125,6 +126,7 @@ var _ = Describe("Workload cluster creation", func() {
125
126
126
127
Context ("Creating a highly available control-plane cluster" , func () {
127
128
It ("Should create a cluster with 3 control-plane and 2 worker nodes" , func () {
129
+ clusterName := fmt .Sprintf ("%s-ha" , clusterNamePrefix )
128
130
By ("Creating a high available cluster" )
129
131
clusterctl .ApplyClusterTemplateAndWait (ctx , clusterctl.ApplyClusterTemplateAndWaitInput {
130
132
ClusterProxy : bootstrapClusterProxy ,
@@ -149,6 +151,7 @@ var _ = Describe("Workload cluster creation", func() {
149
151
150
152
Context ("Creating a single control-plane cluster with per cluster credentials" , func () {
151
153
It ("Should create a cluster with 1 worker node" , func () {
154
+ clusterName := fmt .Sprintf ("%s-with-creds" , clusterNamePrefix )
152
155
By ("Create the credentials secret" )
153
156
154
157
credsFile := os .Getenv ("GOOGLE_APPLICATION_CREDENTIALS" )
@@ -186,6 +189,7 @@ var _ = Describe("Workload cluster creation", func() {
186
189
187
190
Context ("Creating a control-plane cluster with an internal load balancer" , func () {
188
191
It ("Should create a cluster with 1 control-plane and 1 worker node with an internal load balancer" , func () {
192
+ clusterName := fmt .Sprintf ("%s-internal-lb" , clusterNamePrefix )
189
193
By ("Creating a cluster with internal load balancer" )
190
194
clusterctl .ApplyClusterTemplateAndWait (ctx , clusterctl.ApplyClusterTemplateAndWaitInput {
191
195
ClusterProxy : bootstrapClusterProxy ,
@@ -210,6 +214,7 @@ var _ = Describe("Workload cluster creation", func() {
210
214
211
215
Context ("Creating a cluster using a cluster class" , func () {
212
216
It ("Should create a cluster class and then a cluster based on it" , func () {
217
+ clusterName := fmt .Sprintf ("%s-topology" , clusterNamePrefix )
213
218
By ("Creating a cluster from a topology" )
214
219
clusterctl .ApplyClusterTemplateAndWait (ctx , clusterctl.ApplyClusterTemplateAndWaitInput {
215
220
ClusterProxy : bootstrapClusterProxy ,
0 commit comments