@@ -23,6 +23,7 @@ import (
23
23
"context"
24
24
"fmt"
25
25
"os"
26
+ "path/filepath"
26
27
"time"
27
28
28
29
"github.com/Azure/azure-service-operator/v2/pkg/common/config"
@@ -137,7 +138,7 @@ var _ = Describe("Workload cluster creation", func() {
137
138
if os .Getenv ("USE_LOCAL_KIND_REGISTRY" ) != "true" {
138
139
// This spec expects a user-assigned identity with Contributor role assignment named "cloud-provider-user-identity" in a "capz-ci"
139
140
// resource group. Override these defaults by setting the USER_IDENTITY and CI_RG environment variables.
140
- Context ("Creating a private cluster [OPTIONAL]" , func () {
141
+ Context ("Creating a private cluster [OPTIONAL-SKIP ]" , func () {
141
142
It ("Creates a public management cluster in a custom vnet" , func () {
142
143
clusterName = getClusterName (clusterNamePrefix , "public-custom-vnet" )
143
144
By ("Creating a custom virtual network" , func () {
@@ -355,7 +356,7 @@ var _ = Describe("Workload cluster creation", func() {
355
356
})
356
357
})
357
358
358
- Context ("Creating a Flatcar cluster [OPTIONAL]" , func () {
359
+ Context ("Creating a Flatcar cluster [OPTIONAL-SKIP ]" , func () {
359
360
It ("With Flatcar control-plane and worker nodes" , func () {
360
361
clusterName = getClusterName (clusterNamePrefix , "flatcar" )
361
362
clusterctl .ApplyClusterTemplateAndWait (ctx , createApplyClusterTemplateInput (
@@ -393,7 +394,7 @@ var _ = Describe("Workload cluster creation", func() {
393
394
})
394
395
})
395
396
396
- Context ("Creating a Flatcar sysext cluster [OPTIONAL]" , func () {
397
+ Context ("Creating a Flatcar sysext cluster [OPTIONAL-SKIP ]" , func () {
397
398
It ("With Flatcar control-plane and worker nodes" , func () {
398
399
clusterName = getClusterName (clusterNamePrefix , "flatcar-sysext" )
399
400
clusterctl .ApplyClusterTemplateAndWait (ctx , createApplyClusterTemplateInput (
@@ -431,7 +432,7 @@ var _ = Describe("Workload cluster creation", func() {
431
432
})
432
433
})
433
434
434
- Context ("Creating a cluster with spot vms [OPTIONAL]" , func () {
435
+ Context ("Creating a cluster with spot vms [OPTIONAL-SKIP ]" , func () {
435
436
It ("With spot vm machine deployments" , func () {
436
437
clusterName = getClusterName (clusterNamePrefix , "spot" )
437
438
clusterctl .ApplyClusterTemplateAndWait (ctx , createApplyClusterTemplateInput (
@@ -596,7 +597,7 @@ var _ = Describe("Workload cluster creation", func() {
596
597
// You can override the default SKU `Standard_NV12s_v3` and `Premium_LRS` storage by setting
597
598
// the `AZURE_GPU_NODE_MACHINE_TYPE` and `AZURE_GPU_NODE_STORAGE_TYPE` environment variables.
598
599
// See https://azure.microsoft.com/en-us/pricing/details/virtual-machines/linux/ for pricing.
599
- Context ("Creating a GPU-enabled cluster [OPTIONAL]" , func () {
600
+ Context ("Creating a GPU-enabled cluster [OPTIONAL-SKIP ]" , func () {
600
601
It ("with a single control plane node and 1 node" , func () {
601
602
Skip ("Skipping since the e2e subscription has no quota for GPU SKUs" )
602
603
clusterName = getClusterName (clusterNamePrefix , "gpu" )
@@ -655,7 +656,7 @@ var _ = Describe("Workload cluster creation", func() {
655
656
})
656
657
657
658
// ci-e2e.sh and Prow CI skip this test by default. To include this test, set `GINKGO_SKIP=""`.
658
- Context ("Creating a cluster with VMSS flex machinepools [OPTIONAL]" , func () {
659
+ Context ("Creating a cluster with VMSS flex machinepools [OPTIONAL-SKIP ]" , func () {
659
660
It ("with 1 control plane node and 1 machinepool" , func () {
660
661
clusterName = getClusterName (clusterNamePrefix , "flex" )
661
662
clusterctl .ApplyClusterTemplateAndWait (ctx , createApplyClusterTemplateInput (
@@ -993,7 +994,7 @@ var _ = Describe("Workload cluster creation", func() {
993
994
// ci-e2e.sh and Prow CI skip this test by default. To include this test, set `GINKGO_SKIP=""`.
994
995
// This spec expects a user-assigned identity named "cloud-provider-user-identity" in a "capz-ci"
995
996
// resource group. Override these defaults by setting the USER_IDENTITY and CI_RG environment variables.
996
- Context ("Creating a dual-stack cluster [OPTIONAL]" , func () {
997
+ Context ("Creating a dual-stack cluster [OPTIONAL-SKIP ]" , func () {
997
998
It ("With dual-stack worker node" , func () {
998
999
By ("using user-assigned identity" )
999
1000
clusterName = getClusterName (clusterNamePrefix , "dual-stack" )
@@ -1061,7 +1062,7 @@ var _ = Describe("Workload cluster creation", func() {
1061
1062
})
1062
1063
})
1063
1064
1064
- Context ("Creating clusters using clusterclass [OPTIONAL]" , func () {
1065
+ Context ("Creating clusters using clusterclass [OPTIONAL-SKIP ]" , func () {
1065
1066
It ("with a single control plane node, one linux worker node, and one windows worker node" , func () {
1066
1067
// Use ci-default as the clusterclass name so test infra can find the clusterclass template
1067
1068
Expect (os .Setenv ("CLUSTER_CLASS_NAME" , "ci-default" )).To (Succeed ())
@@ -1110,19 +1111,30 @@ var _ = Describe("Workload cluster creation", func() {
1110
1111
1111
1112
Context ("Creating RKE2 clusters using clusterclass [OPTIONAL]" , func () {
1112
1113
It ("with 3 control plane node and one linux worker node" , func () {
1113
- // Use ci-default as the clusterclass name so test infra can find the clusterclass template
1114
+ // Use ci-rke2 as the clusterclass name so test infra can find the clusterclass template
1114
1115
Expect (os .Setenv ("CLUSTER_CLASS_NAME" , "ci-rke2" )).To (Succeed ())
1115
1116
1116
1117
// Use "cc" as spec name because NAT gateway pip name exceeds limit.
1117
1118
clusterName = getClusterName (clusterNamePrefix , "cc" )
1118
1119
1119
- // Opt into using windows with prow template
1120
- Expect (os .Setenv ("WINDOWS_WORKER_MACHINE_COUNT" , "1" )).To (Succeed ())
1120
+ // Init rke2 CP and bootstrap providers
1121
+ initInput := clusterctl.InitInput {
1122
+ // pass reference to the management cluster hosting this test
1123
+ KubeconfigPath : bootstrapClusterProxy .GetKubeconfigPath (),
1124
+ // pass the clusterctl config file that points to the local provider repository created for this test
1125
+ ClusterctlConfigPath : clusterctlConfigPath ,
1126
+ // setup the desired list of providers for a single-tenant management cluster
1127
+ BootstrapProviders : []string {"rke2" },
1128
+ ControlPlaneProviders : []string {"rke2" },
1129
+ // setup clusterctl logs folder
1130
+ LogFolder : filepath .Join (artifactFolder , "clusters" , clusterName ),
1131
+ }
1132
+ clusterctl .Init (ctx , initInput )
1121
1133
1122
1134
// Create a cluster using the cluster class created above
1123
1135
clusterctl .ApplyClusterTemplateAndWait (ctx , createApplyClusterTemplateInput (
1124
1136
specName ,
1125
- withFlavor ("topology" ),
1137
+ withFlavor ("topology-rke2 " ),
1126
1138
withNamespace (namespace .Name ),
1127
1139
withClusterName (clusterName ),
1128
1140
withControlPlaneMachineCount (3 ),
@@ -1160,7 +1172,7 @@ var _ = Describe("Workload cluster creation", func() {
1160
1172
// resource group. Override these defaults by setting the USER_IDENTITY and CI_RG environment variables.
1161
1173
// You can also override the default SKU `Standard_DS2_v2` and `Standard_DS4_v2` storage by setting
1162
1174
// the `AZURE_EDGEZONE_CONTROL_PLANE_MACHINE_TYPE` and `AZURE_EDGEZONE_NODE_MACHINE_TYPE` environment variables.
1163
- Context ("Creating clusters on public MEC [OPTIONAL]" , func () {
1175
+ Context ("Creating clusters on public MEC [OPTIONAL-SKIP ]" , func () {
1164
1176
It ("with 1 control plane nodes and 1 worker node" , func () {
1165
1177
Skip ("Skipping public MEC test until a new edgezone is available" )
1166
1178
By ("using user-assigned identity" )
@@ -1201,7 +1213,7 @@ var _ = Describe("Workload cluster creation", func() {
1201
1213
})
1202
1214
})
1203
1215
1204
- Context ("Creating a self-managed VM based cluster using API Server ILB feature gate using default template [OPTIONAL][API-Server-ILB]" , func () {
1216
+ Context ("Creating a self-managed VM based cluster using API Server ILB feature gate using default template [OPTIONAL-SKIP ][API-Server-ILB]" , func () {
1205
1217
It ("with three controlplane node and three worker nodes" , func () {
1206
1218
clusterName = getClusterName (clusterNamePrefix , "apiserver-ilb" )
1207
1219
@@ -1247,7 +1259,7 @@ var _ = Describe("Workload cluster creation", func() {
1247
1259
})
1248
1260
})
1249
1261
1250
- Context ("Creating a self-managed VM based cluster using API Server ILB feature gate and fully spec-ed out APIServer ILB template [OPTIONAL][API-Server-ILB]" , func () {
1262
+ Context ("Creating a self-managed VM based cluster using API Server ILB feature gate and fully spec-ed out APIServer ILB template [OPTIONAL-SKIP ][API-Server-ILB]" , func () {
1251
1263
It ("with three controlplane node and three worker nodes" , func () {
1252
1264
clusterName = getClusterName (clusterNamePrefix , "apiserver-ilb" )
1253
1265
0 commit comments