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
expectedError: "admission webhook \"validation.machine.machine.openshift.io\" denied the request: providerSpec.capacityReservationId: Invalid value: \"cr-123\": invalid value for capacityReservationId: \"cr-123\", it must start with 'cr-' and be exactly 20 characters long with 17 hexadecimal characters",
200
200
},
201
+
{
202
+
name: "with MarketType set to MarketTypeCapacityBlock and spotMarketOptions are specified",
expectedError: "admission webhook \"validation.machine.machine.openshift.io\" denied the request: providerSpec.marketType: Invalid value: \"CapacityBlock\": invalid marketType: marketType set to CapacityBlock and spotMarketOptions cannot be used together",
216
+
},
217
+
{
218
+
name: "with MarketType set to MarketTypeOnDemand and spotMarketOptions are specified",
expectedError: "admission webhook \"validation.machine.machine.openshift.io\" denied the request: providerSpec.marketType: Invalid value: \"OnDemand\": invalid marketType: setting marketType to OnDemand and spotMarketOptions cannot be used together",
231
+
},
232
+
{
233
+
name: "with MarketType set to MarketTypeCapacityBlock is specified and CapacityReservationId is not provided",
expectedError: "admission webhook \"validation.machine.machine.openshift.io\" denied the request: providerSpec.marketType: Invalid value: \"CapacityBlock\": capacityReservationID is required when CapacityBlock is provided",
245
+
},
246
+
{
247
+
name: "with MarketType set to MarketTypeCapacityBlock and CapacityReservationId are provided",
0 commit comments