Closed
Description
User Story
As a developer I would like to have a consistent abstract toolset to quickly write unit tests in Cluster API.
Detailed Description
The matchers package added in #5259 brings generic matching to Cluster API objects and makes it easier to match only on required fields at test time. In controller runtime a similar approach with some differences - called Komega in its current iteration at kubernetes-sigs/controller-runtime#1364
These approaches could be integrated inside controller runtime to bring generic json based matching with the Komega abstraction over the controller runtime client to reduce the amount of boiler plate code involved in writing these tests.
/kind feature
/area testing