tinkerbell / cluster-api-provider-tinkerbell

Cluster API Infrastructure Provider
Apache License 2.0
92 stars 35 forks source link

Simplify data structures and remove redundant interfaces #305

Closed chrisdoherty4 closed 1 year ago

chrisdoherty4 commented 1 year ago

Summary

The existing machine reconciliation code leveraged 3 different data structures (TinkerbellMachineReconciler, machineReconcileContext and baseMachineReconcileContext) and 2 interfaces (ReconcileContext and BaseMachineReconcileContext).

The machineReconcileContext extends the baseMachineReconcileContext but the relationship is misappropriated and superfluous.

The ReconcileContext and the BaseMachineReconcileContext have no discernible purpose.

Changes

Motivation

What's next?

chrisdoherty4 commented 1 year ago

@mergifyio queue

mergify[bot] commented 1 year ago

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at *bc4a272dc14e4d4466182c5c94981ff1b8383e95*