Skip to content

Conversation

@cbandy
Copy link
Member

@cbandy cbandy commented Sep 19, 2025

Each implementation was doing the first fetch of its main object a bit differently. The controller-runtime module can do this since v0.17.0 and Go generics.

Checklist:

  • Have you added an explanation of what your changes do and why you'd like them to be included?
  • Have you updated or added documentation for the change, as applicable?
  • Have you tested your changes on all related environments with successful results, as applicable?
    • Have you added automated tests?

Type of Changes:

  • Other

Each implementation was doing the first fetch of its main object a bit
differently. The controller-runtime module can do this since v0.17.0
and Go generics.
}),
).
Complete(reconciler))
Complete(reconcile.AsReconciler(kubernetes, reconciler)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, so AsReconciler returns a reconciler from an ObjectReconciler, which reconciler is now because our reconcile func takes the object rather than a req.

Which is better because it offloads some generic logic from our reconcile to some k8s standard functions. (Also simplifies some tests where we were having to build a request.)

Did I get it? Am I missing something?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻 That is all of it.

@cbandy cbandy enabled auto-merge (rebase) September 19, 2025 21:27
@cbandy cbandy merged commit f73d542 into CrunchyData:main Sep 20, 2025
19 checks passed
@cbandy cbandy deleted the object-reconciler branch September 22, 2025 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants