Skip to content

Integrate internal/matchers into Komega style test abstraction in Controller Runtime #5338

Closed
@killianmuldoon

Description

@killianmuldoon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/testingIssues or PRs related to testingkind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions