@@ -71,17 +71,12 @@ var _ = Describe("Cluster API GCP MachineSet", framework.LabelCAPI, framework.La
71
71
framework .WaitForCAPIMachineSetsDeleted (ctx , cl , machineSet )
72
72
framework .DeleteObjects (ctx , cl , gcpMachineTemplate )
73
73
})
74
- // OCP-77825 capi created instances support disks pd-ssd and pd-standard
75
-
76
- DescribeTable ("should be able to run a machine with disk types" ,
74
+ DescribeTable ("should be able to run a machine with disk types" , framework .LabelCAPI , framework .LabelDisruptive ,
77
75
func (expectedDiskType gcpv1.DiskType ) {
78
76
mapiProviderSpec := getGCPMAPIProviderSpec (cl )
79
77
Expect (mapiProviderSpec ).ToNot (BeNil ())
80
78
gcpMachineTemplate = createGCPMachineTemplate (mapiProviderSpec )
81
79
gcpMachineTemplate .Spec .Template .Spec .RootDeviceType = & expectedDiskType
82
- mapiProviderSpec .OnHostMaintenance = OnHostMaintenanceTerminate
83
- gcpMachineTemplate .Spec .Template .Spec .OnHostMaintenance = (* gcpv1 .HostMaintenancePolicy )(& mapiProviderSpec .OnHostMaintenance )
84
-
85
80
if err := cl .Create (ctx , gcpMachineTemplate ); err != nil && ! apierrors .IsAlreadyExists (err ) {
86
81
Expect (err ).ToNot (HaveOccurred ())
87
82
}
@@ -103,10 +98,7 @@ var _ = Describe("Cluster API GCP MachineSet", framework.LabelCAPI, framework.La
103
98
Entry ("Disk type pd-standard" , gcpv1 .PdStandardDiskType ),
104
99
Entry ("Disk type pd-ssd" , gcpv1 .PdSsdDiskType ),
105
100
)
106
- // OCP-74795 - add support for shielded VMs - It takes defaults if configs are not supported; eg-vtpm alone set to Enabled will result in IntergrityMonitoring also as Enabled
107
- // doesn't matter what we pass - all enabled/secureboot only disabled(default) are valid changes which we can apply
108
-
109
- DescribeTable ("should configure Shielded VM options correctly" ,
101
+ DescribeTable ("should configure Shielded VM options correctly" , framework .LabelCAPI , framework .LabelDisruptive ,
110
102
func (enableSecureBoot gcpv1.SecureBootPolicy , enableVtpm gcpv1.VirtualizedTrustedPlatformModulePolicy , enableIntegrityMonitoring gcpv1.IntegrityMonitoringPolicy ) {
111
103
mapiProviderSpec := getGCPMAPIProviderSpec (cl )
112
104
Expect (mapiProviderSpec ).ToNot (BeNil ())
@@ -158,12 +150,10 @@ var _ = Describe("Cluster API GCP MachineSet", framework.LabelCAPI, framework.La
158
150
Entry("all Shielded VM options disabled", gcpv1.SecureBootPolicyDisabled, gcpv1.VirtualizedTrustedPlatformModulePolicyDisabled, gcpv1.IntegrityMonitoringPolicyDisabled),
159
151
*/
160
152
)
161
- // OCP-74703 - Create confidential compute VMs on gcp
162
-
163
153
// Define constants as variable for this case to pass values properly
164
154
confidentialComputeEnabled := gcpv1 .ConfidentialComputePolicyEnabled
165
155
confidentialComputeDisabled := gcpv1 .ConfidentialComputePolicyDisabled
166
- DescribeTable ("should configure Confidential VM correctly" ,
156
+ DescribeTable ("should configure Confidential VM correctly" , framework . LabelCAPI , framework . LabelDisruptive ,
167
157
func (confidentialCompute * gcpv1.ConfidentialComputePolicy ) {
168
158
mapiProviderSpec := getGCPMAPIProviderSpec (cl )
169
159
Expect (mapiProviderSpec ).ToNot (BeNil ())
@@ -211,48 +201,6 @@ var _ = Describe("Cluster API GCP MachineSet", framework.LabelCAPI, framework.La
211
201
Entry ("Confidential Compute enabled" , & confidentialComputeEnabled ),
212
202
Entry ("Confidential Compute disabled" , & confidentialComputeDisabled ),
213
203
)
214
- // OCP-74732 GPU machine can be provisioned successfully by capi machineset
215
-
216
- It ("should provision GPU machine successfully" , func () {
217
- mapiProviderSpec := getGCPMAPIProviderSpec (cl )
218
- Expect (mapiProviderSpec ).ToNot (BeNil ())
219
- gcpMachineTemplate = createGCPMachineTemplate (mapiProviderSpec )
220
- gcpMachineTemplate .Spec .Template .Spec .InstanceType = "a2-highgpu-1g"
221
- mapiProviderSpec .OnHostMaintenance = OnHostMaintenanceTerminate
222
- gcpMachineTemplate .Spec .Template .Spec .OnHostMaintenance = (* gcpv1 .HostMaintenancePolicy )(& mapiProviderSpec .OnHostMaintenance )
223
-
224
- if err := cl .Create (ctx , gcpMachineTemplate ); err != nil && ! apierrors .IsAlreadyExists (err ) {
225
- Expect (err ).ToNot (HaveOccurred ())
226
- }
227
-
228
- By ("Creating a MachineSet for GPU machine" )
229
- machineSet , err = framework .CreateCAPIMachineSet (ctx , cl , framework .NewCAPIMachineSetParams (
230
- "gcp-machineset-gpu-74732" ,
231
- clusterName ,
232
- mapiProviderSpec .Zone ,
233
- 1 ,
234
- corev1.ObjectReference {
235
- Kind : "GCPMachineTemplate" ,
236
- APIVersion : infraAPIVersion ,
237
- Name : gcpMachineTemplateName ,
238
- },
239
- ))
240
- Expect (err ).ToNot (HaveOccurred (), "Failed to create CAPI MachineSet with GPU instanceType" )
241
-
242
- framework .WaitForCAPIMachinesRunning (ctx , cl , machineSet .Name )
243
-
244
- By ("Verifying the GPU machinetype configuration on the created GCP MachineTemplate" )
245
- createdTemplate := & gcpv1.GCPMachineTemplate {}
246
- Expect (cl .Get (framework .GetContext (), client.ObjectKey {
247
- Namespace : framework .ClusterAPINamespace ,
248
- Name : gcpMachineTemplateName ,
249
- }, createdTemplate )).To (Succeed ())
250
- var machineType = createdTemplate .Spec .Template .Spec .InstanceType
251
- Expect (machineType ).To (Equal ("a2-highgpu-1g" ))
252
- },
253
- )
254
- // OCP-75792 Preemptible machines can be provisioned successfully by capi machineset
255
-
256
204
It ("should provision Preemptible machine successfully" , func () {
257
205
mapiProviderSpec := getGCPMAPIProviderSpec (cl )
258
206
Expect (mapiProviderSpec ).ToNot (BeNil ())
0 commit comments