@@ -303,7 +303,7 @@ func (r *OpenStackMachineReconciler) reconcileDelete(scope scope.Scope, cluster
303
303
func (r * OpenStackMachineReconciler ) reconcileFloatingAddressFromPool (ctx context.Context , scope scope.Scope , openStackMachine * infrav1.OpenStackMachine , openStackCluster * infrav1.OpenStackCluster , instanceStatus * compute.InstanceStatus , instanceNS * compute.InstanceNetworkStatus ) error {
304
304
if openStackMachine .Spec .FloatingAddressFromPool == nil {
305
305
conditions .MarkTrue (openStackMachine , infrav1 .FloatingAddressFromPoolReadyCondition )
306
- openStackMachine .Status .FloatingAddressFromPoolReady = true
306
+ openStackMachine .Status .FloatingAddressFromPoolReady = pointer . BoolPtr ( true )
307
307
return nil
308
308
}
309
309
@@ -362,7 +362,7 @@ func (r *OpenStackMachineReconciler) reconcileFloatingAddressFromPool(ctx contex
362
362
instanceAddresses := instanceNS .Addresses ()
363
363
for _ , instanceAddress := range instanceAddresses {
364
364
if instanceAddress .Address == address .Spec .Address {
365
- openStackMachine .Status .FloatingAddressFromPoolReady = true
365
+ openStackMachine .Status .FloatingAddressFromPoolReady = pointer . BoolPtr ( true )
366
366
conditions .MarkTrue (openStackMachine , infrav1 .FloatingAddressFromPoolReadyCondition )
367
367
return nil
368
368
}
@@ -391,11 +391,11 @@ func (r *OpenStackMachineReconciler) reconcileFloatingAddressFromPool(ctx contex
391
391
return err
392
392
}
393
393
}
394
- openStackMachine .Status .FloatingAddressFromPoolReady = true
394
+ openStackMachine .Status .FloatingAddressFromPoolReady = pointer . BoolPtr ( true )
395
395
conditions .MarkTrue (openStackMachine , infrav1 .FloatingAddressFromPoolReadyCondition )
396
396
} else {
397
397
scope .Logger ().Info ("Waiting for IPAddressClaim to be allocated" , "name" , claim .Name )
398
- openStackMachine .Status .FloatingAddressFromPoolReady = false
398
+ openStackMachine .Status .FloatingAddressFromPoolReady = pointer . BoolPtr ( false )
399
399
conditions .MarkFalse (openStackMachine , infrav1 .FloatingAddressFromPoolReadyCondition , infrav1 .FloatingAddressFromPoolWaitingForIpamProviderReason , clusterv1 .ConditionSeverityWarning , "" )
400
400
}
401
401
return nil
@@ -496,7 +496,7 @@ func (r *OpenStackMachineReconciler) reconcileNormal(ctx context.Context, scope
496
496
497
497
switch instanceStatus .State () {
498
498
case infrav1 .InstanceStateActive :
499
- if openStackMachine .Status .FloatingAddressFromPoolReady {
499
+ if pointer . BoolDeref ( openStackMachine .Status .FloatingAddressFromPoolReady , false ) {
500
500
scope .Logger ().Info ("Machine instance state is ACTIVE" , "id" , instanceStatus .ID ())
501
501
conditions .MarkTrue (openStackMachine , infrav1 .InstanceReadyCondition )
502
502
} else {
0 commit comments