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

Rework internal resource trackers #285

Open
distorhead opened this issue Oct 10, 2022 · 0 comments
Open

Rework internal resource trackers #285

distorhead opened this issue Oct 10, 2022 · 0 comments

Comments

@distorhead
Copy link
Member

The problem: there is a lot of repeated code in each tracker in pkg/tracker, it is:

  1. hard to maintain this code and fix bugs;
  2. hard to add new trackers for custom resources, because a lot of code need to be copied.

Solution: rework pkg/tracker, so that:

  • it uses dynamic kubernetes client;
  • it implements some common base resource with typical operations needed to implement any concrete resource tracker;
  • it does not mix representational logic with status reporting mechanics (status-indicators in the current implementation should not be implemented in the resource trackers, but instead should be implemented at the multitracker level).

1st step includes:

  • implementing new framework to build resource trackers;
  • implementing Deployment tracker on top of such framework;
  • implementing compatibility adapter for Deployment so that new tracker can be used in the current version of multitracker.
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

No branches or pull requests

1 participant