Skip to content

Create unified patching/matching library #5316

Closed
@killianmuldoon

Description

@killianmuldoon

User Story

As a developer I would like a single API inside CAPI to compare and alter objects.

Detailed Description

With the merging of PR #5259 there are now two implementation of using json patches to match and patch objects in the CAPI codebase - one under /internal/matchers and a second under controllers/topology/internal/mergepatch. The base implementation of these functions is the same with the higher level API serving specific use cases.

Currently both of these packages are internal to different packages and can't be merged. If either or both of these packages are moved in future to be more available i.e. lifting mergepatch out of topology or making either package public, consideration should be given to merging these two packages into a single common implementation - under internal or util depending on whether the package should be treated as a public API.

/kind cleanup

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions