You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: "configure host affinity with invalid affinity",
337
+
platformType: osconfigv1.AWSPlatformType,
338
+
clusterID: "aws-cluster",
339
+
providerSpecValue: &kruntime.RawExtension{
340
+
Object: &machinev1beta1.AWSMachineProviderConfig{
341
+
AMI: machinev1beta1.AWSResourceReference{
342
+
ID: ptr.To[string]("ami"),
343
+
},
344
+
InstanceType: "test",
345
+
HostAffinity: ptr.To("invalid"),
346
+
},
347
+
},
348
+
expectedError: "admission webhook \"validation.machine.machine.openshift.io\" denied the request: spec.hostID: Required value: hostID must be set when hostAffinity is configured", // true
349
+
},
350
+
{
351
+
name: "configure host affinity without Host ID",
352
+
platformType: osconfigv1.AWSPlatformType,
353
+
clusterID: "aws-cluster",
354
+
providerSpecValue: &kruntime.RawExtension{
355
+
Object: &machinev1beta1.AWSMachineProviderConfig{
356
+
AMI: machinev1beta1.AWSResourceReference{
357
+
ID: ptr.To[string]("ami"),
358
+
},
359
+
InstanceType: "test",
360
+
HostAffinity: ptr.To("default"),
361
+
},
362
+
},
363
+
expectedError: "admission webhook \"validation.machine.machine.openshift.io\" denied the request: spec.hostID: Required value: hostID must be set when hostAffinity is configured", // true
364
+
},
365
+
{
366
+
name: "hostID and dynamicHostAllocation are mutually exclusive",
expectedError: "validation.machine.machine.openshift.io\" denied the request: [spec.hostID: Forbidden: hostID and dynamicHostAllocation are mutually exclusive, spec.dynamicHostAllocation: Forbidden: hostID and dynamicHostAllocation are mutually exclusive]",
0 commit comments