Skip to content

Prune apiserver dependencies #17412

Closed
Closed
@timstclair

Description

The pkg/apiserver package currently has a lot of dependencies:

image

This is problematic because we would like to use the apiserver library on the kubelet to host the metrics api group.

Fortunately, there is lots of low hanging fruit, and many dependencies can be removed by splitting some packages. Once these cases are addressed, we should identify any particularly problematic packages that remain, and make the necessary refactorings to extract those dependencies.

Finally, we should introduce a ForbiddenDepsTest which will specify tests as a list of package, []forbidden pairs, and verify that package does not depend (directly or indirectly) on the forbidden packages.

Metadata

Assignees

Labels

area/apiserverkind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.sig/api-machineryCategorizes an issue or PR as relevant to SIG API Machinery.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions