-
Notifications
You must be signed in to change notification settings - Fork 38.8k
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
[scheduler cleanup phase 1]:Move scheduler cache interface and implementation to pkg/scheduler/in… #68968
[scheduler cleanup phase 1]:Move scheduler cache interface and implementation to pkg/scheduler/in… #68968
Conversation
dc3ee68
to
41f2d4d
Compare
/kind cleanup |
aa5f872
to
bc109ed
Compare
bc109ed
to
b3567b3
Compare
3046456
to
10b9742
Compare
/retest |
2b85221
to
137d081
Compare
pkg/scheduler/cache/node_info.go
Outdated
return n.generation | ||
} | ||
|
||
// SetGeneration sets the generation on this node. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a comment that it is only to be used for testing. I think we can get rid of this in a future cleanup.
137d081
to
6cc8320
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
@wgliang: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
/retest |
/approve |
@@ -122,6 +122,7 @@ | |||
"k8s.io/kubernetes/pkg/scheduler/algorithm/priorities/util", | |||
"k8s.io/kubernetes/pkg/scheduler/api", | |||
"k8s.io/kubernetes/pkg/scheduler/cache", | |||
"k8s.io/kubernetes/pkg/scheduler/internal/cache", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's due to a transitive dependency. Obviously that package cannot be imported by kubectl, but this line was needed to make the tooling happy.
/cc @lavalamp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, import boss doesn't understand about internal packages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sigh...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we can't do better ...
/approve
edit: doesn't seem to work from here :-)
edit-edit: Actually it does
I think leaving the release note as NONE would be more appropriate as it's internal code refactoring. |
It's okay to put NONE for internal cleanup most of the time, but it doesn't hurt to to have it either. Humans will review release notes before they go out, and decide whether this should be included. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
It’s awful and there is a conflict. I will rebase immediately. |
6cc8320
to
187e2e0
Compare
Just rebse. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: apelisse, k82cn, misterikkit, timothysc, wgliang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…ternal/cache
What this PR does / why we need it:
The scheduler’s cache implementation is not meant to be exported as a golang library outside of the scheduler. It should be moved from k8s.io/kubernetes/pkg/scheduler/cache to k8s.io/kubernetes/pkg/scheduler/internal/cache.
There are some types in the current cache package, namely NodeInfo, which should remain where they are. And all named as node package.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #68961
Special notes for your reviewer:
Release note: