Closed
Description
The pkg/apiserver
package currently has a lot of dependencies:
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.