Skip to content

Commit c5952ee

Browse files
authored
Merge pull request #1386 from tahsinrahman/explicit-client-ms
🏃 MachineSetReconciler: make Client a proper field
2 parents 44cf8e2 + 7636978 commit c5952ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

controllers/machineset_controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ var (
6262

6363
// MachineSetReconciler reconciles a MachineSet object
6464
type MachineSetReconciler struct {
65-
client.Client
66-
Log logr.Logger
65+
Client client.Client
66+
Log logr.Logger
6767

6868
recorder record.EventRecorder
6969
}
@@ -88,7 +88,7 @@ func (r *MachineSetReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)
8888
_ = r.Log.WithValues("machineset", req.NamespacedName)
8989

9090
machineSet := &clusterv1.MachineSet{}
91-
if err := r.Get(ctx, req.NamespacedName, machineSet); err != nil {
91+
if err := r.Client.Get(ctx, req.NamespacedName, machineSet); err != nil {
9292
if apierrors.IsNotFound(err) {
9393
// Object not found, return. Created objects are automatically garbage collected.
9494
// For additional cleanup logic use finalizers.

0 commit comments

Comments
 (0)