Skip to content

Clean up scheduler dependencies on k8s.io/kubernetes packages #89930

@damemi

Description

@damemi

To make it easier for out-of-tree developers to import the scheduler framework, among other scheduling helpers and constants, we should explore areas that we can remove dependencies on k8s.io/kubernetes. Places that could be easily removed are, for example, using internal APIs where not required or importing unrelated packages for simple helpers which can be trivially implemented. This will clean up the dependency tree for importing scheduler code externally.

This is related to: Proposal to migrate scheduler code to staging. While the proposal includes all scheduler code, we are only focusing on scheduler framework code. However identifying anywhere in the scheduler code that these dependencies can be cleaned up will be helpful as well.

This will probably be an ongoing cleanup effort, and breaking the work into smaller PRs may actually help with review and preventing code breaking in the process.
/kind cleanup
/sig scheduling

PRs opened so far:

🔹 = Adds code to pkg/scheduler/util, which should be externalized

Metadata

Metadata

Labels

kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.sig/schedulingCategorizes an issue or PR as relevant to SIG Scheduling.

Type

No type

Projects

Status

Needs Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions