@@ -124,7 +124,7 @@ func AddMachineControllerToManager(ctx *context.ControllerManagerContext, mgr ma
124
124
).
125
125
WithOptions (controller.Options {MaxConcurrentReconciles : ctx .MaxConcurrentReconciles })
126
126
127
- r := machineReconciler {
127
+ r := & machineReconciler {
128
128
ControllerContext : controllerContext ,
129
129
VMService : & services.VimMachineService {},
130
130
supervisorBased : supervisorBased ,
@@ -179,7 +179,7 @@ type machineReconciler struct {
179
179
}
180
180
181
181
// Reconcile ensures the back-end state reflects the Kubernetes resource state intent.
182
- func (r machineReconciler ) Reconcile (_ goctx.Context , req ctrl.Request ) (_ ctrl.Result , reterr error ) {
182
+ func (r * machineReconciler ) Reconcile (_ goctx.Context , req ctrl.Request ) (_ ctrl.Result , reterr error ) {
183
183
var machineContext context.MachineContext
184
184
logger := r .Logger .WithName (req .Namespace ).WithName (req .Name )
185
185
logger .V (3 ).Info ("Starting Reconcile VSphereMachine" )
@@ -259,7 +259,7 @@ func (r machineReconciler) Reconcile(_ goctx.Context, req ctrl.Request) (_ ctrl.
259
259
return r .reconcileNormal (machineContext )
260
260
}
261
261
262
- func (r machineReconciler ) reconcileDelete (ctx context.MachineContext ) (reconcile.Result , error ) {
262
+ func (r * machineReconciler ) reconcileDelete (ctx context.MachineContext ) (reconcile.Result , error ) {
263
263
ctx .GetLogger ().Info ("Handling deleted VSphereMachine" )
264
264
conditions .MarkFalse (ctx .GetVSphereMachine (), infrav1 .VMProvisionedCondition , clusterv1 .DeletingReason , clusterv1 .ConditionSeverityInfo , "" )
265
265
@@ -277,7 +277,7 @@ func (r machineReconciler) reconcileDelete(ctx context.MachineContext) (reconcil
277
277
return reconcile.Result {RequeueAfter : 10 * time .Second }, nil
278
278
}
279
279
280
- func (r machineReconciler ) reconcileNormal (ctx context.MachineContext ) (reconcile.Result , error ) {
280
+ func (r * machineReconciler ) reconcileNormal (ctx context.MachineContext ) (reconcile.Result , error ) {
281
281
machineFailed , err := r .VMService .SyncFailureReason (ctx )
282
282
if err != nil && ! apierrors .IsNotFound (err ) {
283
283
return reconcile.Result {}, err
0 commit comments