@@ -212,27 +212,26 @@ func (r *IBMPowerVSMachineReconciler) handleLoadBalancerPoolMemberConfiguration(
212
212
}
213
213
214
214
func (r * IBMPowerVSMachineReconciler ) reconcileNormal (machineScope * scope.PowerVSMachineScope ) (ctrl.Result , error ) {
215
- ctx := context .Background ()
216
- log := ctrl .LoggerFrom (ctx )
217
- machineScope .Info ("Reconciling IBMPowerVSMachine" )
215
+ log := ctrl .LoggerFrom (context .Background ())
216
+ log .V (3 ).Info ("Reconciling IBMPowerVSMachine" )
218
217
219
218
if ! machineScope .Cluster .Status .InfrastructureReady {
220
- machineScope .Info ("Cluster infrastructure is not ready yet" )
219
+ log . V ( 3 ) .Info ("Cluster infrastructure is not ready yet" )
221
220
conditions .MarkFalse (machineScope .IBMPowerVSMachine , infrav1beta2 .InstanceReadyCondition , infrav1beta2 .WaitingForClusterInfrastructureReason , capiv1beta1 .ConditionSeverityInfo , "" )
222
221
return ctrl.Result {RequeueAfter : 1 * time .Minute }, nil
223
222
}
224
223
225
224
if machineScope .IBMPowerVSImage != nil {
226
225
if ! machineScope .IBMPowerVSImage .Status .Ready {
227
- machineScope .Info ("IBMPowerVSImage is not ready yet" )
226
+ log . V ( 3 ) .Info ("IBMPowerVSImage is not ready yet" )
228
227
conditions .MarkFalse (machineScope .IBMPowerVSMachine , infrav1beta2 .InstanceReadyCondition , infrav1beta2 .WaitingForIBMPowerVSImageReason , capiv1beta1 .ConditionSeverityInfo , "" )
229
228
return ctrl.Result {RequeueAfter : 1 * time .Minute }, nil
230
229
}
231
230
}
232
231
233
232
// Make sure bootstrap data is available and populated.
234
233
if machineScope .Machine .Spec .Bootstrap .DataSecretName == nil {
235
- machineScope .Info ("Bootstrap data secret reference is not yet available" )
234
+ log . V ( 3 ) .Info ("Bootstrap data secret reference is not yet available" )
236
235
conditions .MarkFalse (machineScope .IBMPowerVSMachine , infrav1beta2 .InstanceReadyCondition , infrav1beta2 .WaitingForBootstrapDataReason , capiv1beta1 .ConditionSeverityInfo , "" )
237
236
return ctrl.Result {RequeueAfter : 1 * time .Minute }, nil
238
237
}
@@ -282,7 +281,7 @@ func (r *IBMPowerVSMachineReconciler) reconcileNormal(machineScope *scope.PowerV
282
281
return ctrl.Result {}, nil
283
282
default :
284
283
machineScope .SetNotReady ()
285
- machineScope .Info ("PowerVS instance state is undefined" , "state" , * instance .Status , "instance-id" , machineScope .GetInstanceID ())
284
+ log . V ( 3 ) .Info ("PowerVS instance state is undefined" , "state" , * instance .Status , "instance-id" , machineScope .GetInstanceID ())
286
285
conditions .MarkUnknown (machineScope .IBMPowerVSMachine , infrav1beta2 .InstanceReadyCondition , "" , "" )
287
286
}
288
287
} else {
@@ -298,17 +297,18 @@ func (r *IBMPowerVSMachineReconciler) reconcileNormal(machineScope *scope.PowerV
298
297
return ctrl.Result {}, nil
299
298
}
300
299
// Register instance with load balancer
301
- machineScope .Info ("updating loadbalancer for machine" , "name" , machineScope .IBMPowerVSMachine .Name )
300
+ log . V ( 3 ) .Info ("updating loadbalancer for machine" , "name" , machineScope .IBMPowerVSMachine .Name )
302
301
internalIP := machineScope .GetMachineInternalIP ()
303
302
if internalIP == "" {
304
- machineScope .Info ("Unable to update the LoadBalancer, Machine internal IP not yet set" , "machineName" , machineScope .IBMPowerVSMachine .Name )
303
+ log . V ( 3 ) .Info ("Unable to update the LoadBalancer, Machine internal IP not yet set" , "machineName" , machineScope .IBMPowerVSMachine .Name )
305
304
return ctrl.Result {}, nil
306
305
}
307
306
308
307
if util .IsControlPlaneMachine (machineScope .Machine ) {
309
- log .V (3 ).Info ("skipping loadbalancer configuration as it is not control plane machine" , "machineName" , machineScope .IBMPowerVSMachine .Name )
308
+ log .V (3 ).Info ("Configuring loadbalancer configuration for control plane machine" , "machineName" , machineScope .IBMPowerVSMachine .Name )
310
309
return r .handleLoadBalancerPoolMemberConfiguration (machineScope )
311
310
}
311
+ log .V (3 ).Info ("skipping loadbalancer configuration as it is not control plane machine" , "machineName" , machineScope .IBMPowerVSMachine .Name )
312
312
313
313
return ctrl.Result {}, nil
314
314
}
0 commit comments