Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create unified patching/matching library #5316

Closed
killianmuldoon opened this issue Sep 24, 2021 · 2 comments
Closed

Create unified patching/matching library #5316

killianmuldoon opened this issue Sep 24, 2021 · 2 comments
Labels
kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt.

Comments

@killianmuldoon
Copy link
Contributor

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

@k8s-ci-robot k8s-ci-robot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Sep 24, 2021
@fabriziopandini
Copy link
Member

/close
given that we are exploring to move the matcher in controller-runtime which is a better collocation for this.
See kubernetes-sigs/controller-runtime#1364

we can eventually re-open later if this proves difficult to achieve

@k8s-ci-robot
Copy link
Contributor

@fabriziopandini: Closing this issue.

In response to this:

/close
given that we are exploring to move the matcher in controller-runtime which is a better collocation for this.
See kubernetes-sigs/controller-runtime#1364

we can eventually re-open later if this proves difficult to achieve

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt.
Projects
None yet
Development

No branches or pull requests

3 participants