@@ -200,7 +200,7 @@ func (r *ROSAControlPlaneReconciler) reconcileNormal(ctx context.Context, rosaSc
200
200
}
201
201
202
202
if validationMessage , validationError := validateControlPlaneSpec (ocmClient , rosaScope ); validationError != nil {
203
- return ctrl.Result {}, fmt .Errorf ("validate ROSAControlPlane.spec: %w" , err )
203
+ return ctrl.Result {}, fmt .Errorf ("validate ROSAControlPlane.spec: %w" , validationError )
204
204
} else if validationMessage != "" {
205
205
rosaScope .ControlPlane .Status .FailureMessage = ptr .To (validationMessage )
206
206
// dont' requeue because input is invalid and manual intervention is needed.
@@ -268,14 +268,21 @@ func (r *ROSAControlPlaneReconciler) reconcileNormal(ctx context.Context, rosaSc
268
268
rosaScope .Error (err , "rosacontrolplane.spec.machineCIDR invalid" )
269
269
}
270
270
271
+ billingAccount := * rosaScope .Identity .Account
272
+ if rosaScope .ControlPlane .Spec .BillingAccount != "" {
273
+ billingAccount = rosaScope .ControlPlane .Spec .BillingAccount
274
+ }
275
+
271
276
spec := ocm.Spec {
277
+ DryRun : ptr .To (false ),
272
278
Name : rosaScope .RosaClusterName (),
273
279
Region : * rosaScope .ControlPlane .Spec .Region ,
274
280
MultiAZ : true ,
275
281
Version : ocm .CreateVersionID (rosaScope .ControlPlane .Spec .Version , ocm .DefaultChannelGroup ),
276
282
ChannelGroup : "stable" ,
277
283
Expiration : time .Now ().Add (1 * time .Hour ),
278
284
DisableWorkloadMonitoring : ptr .To (true ),
285
+ DefaultIngress : ocm .NewDefaultIngressSpec (), // n.b. this is a no-op when it's set to the default value
279
286
280
287
SubnetIds : rosaScope .ControlPlane .Spec .Subnets ,
281
288
AvailabilityZones : rosaScope .ControlPlane .Spec .AvailabilityZones ,
@@ -332,7 +339,7 @@ func (r *ROSAControlPlaneReconciler) reconcileNormal(ctx context.Context, rosaSc
332
339
Hypershift : ocm.Hypershift {
333
340
Enabled : true ,
334
341
},
335
- BillingAccount : * rosaScope . Identity . Account ,
342
+ BillingAccount : billingAccount ,
336
343
AWSCreator : creator ,
337
344
}
338
345
0 commit comments