@@ -45,7 +45,7 @@ var _ = Describe("GKE workload cluster creation", func() {
45
45
namespace * corev1.Namespace
46
46
cancelWatches context.CancelFunc
47
47
result * ApplyManagedClusterTemplateAndWaitResult
48
- clusterName string
48
+ clusterNamePrefix string
49
49
clusterctlLogFolder string
50
50
)
51
51
@@ -57,7 +57,7 @@ var _ = Describe("GKE workload cluster creation", func() {
57
57
58
58
Expect (e2eConfig .Variables ).To (HaveKey (KubernetesVersion ))
59
59
60
- clusterName = fmt .Sprintf ("capg-e2e-%s" , util .RandomString (6 ))
60
+ clusterNamePrefix = fmt .Sprintf ("capg-e2e-gke -%s" , util .RandomString (6 ))
61
61
62
62
// Setup a Namespace where to host objects for this spec and create a watcher for the namespace events.
63
63
namespace , cancelWatches = setupSpecNamespace (ctx , specName , bootstrapClusterProxy , artifactFolder )
@@ -85,6 +85,7 @@ var _ = Describe("GKE workload cluster creation", func() {
85
85
86
86
Context ("Creating a GKE cluster without autopilot" , func () {
87
87
It ("Should create a cluster with 1 machine pool and scale" , func () {
88
+ clusterName := fmt .Sprintf ("%s-single" , clusterNamePrefix )
88
89
By ("Initializes with 1 machine pool" )
89
90
90
91
minPoolSize , ok := e2eConfig .Variables ["GKE_MACHINE_POOL_MIN" ]
@@ -137,6 +138,7 @@ var _ = Describe("GKE workload cluster creation", func() {
137
138
138
139
Context ("Creating a GKE cluster with autopilot" , func () {
139
140
It ("Should create a cluster with 1 machine pool and scale" , func () {
141
+ clusterName := fmt .Sprintf ("%s-autopilot" , clusterNamePrefix )
140
142
By ("Initializes with 1 machine pool" )
141
143
142
144
ApplyManagedClusterTemplateAndWait (ctx , ApplyManagedClusterTemplateAndWaitInput {
@@ -162,6 +164,7 @@ var _ = Describe("GKE workload cluster creation", func() {
162
164
163
165
Context ("Creating a GKE cluster with custom subnet" , func () {
164
166
It ("Should create a cluster with 3 machine pool and custom subnet" , func () {
167
+ clusterName := fmt .Sprintf ("%s-custom-subnet" , clusterNamePrefix )
165
168
By ("Initializes with 3 machine pool" )
166
169
167
170
ApplyManagedClusterTemplateAndWait (ctx , ApplyManagedClusterTemplateAndWaitInput {
0 commit comments