-
Notifications
You must be signed in to change notification settings - Fork 42.1k
[scheduler cleanup phase 1]: Move NodeInfo utils into pkg/scheduler/cache #69495
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 NodeInfo utils into pkg/scheduler/cache #69495
Conversation
8191248 to
a1aff3f
Compare
|
/retest |
1 similar comment
|
/retest |
|
/ping @misterikkit @k82cn @bsalamat |
pkg/scheduler/cache/util.go
Outdated
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.
rather than adding this to utils.go, what do you think about creating a file like ports.go (and ports_test.go)?
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.
DONE.
ad9ad0c to
be6a825
Compare
misterikkit
left a comment
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
pkg/scheduler/cache/ports.go
Outdated
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.
Isn't it better to call this file host_ports.go to distinguish it from container ports?
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.
But there also has ProtocolPort code, so ports.go maybe more accurate.
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.
+1 to host_ports, we only care about host port in scheduler including its protocol.
pkg/scheduler/cache/util.go
Outdated
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.
move this const to ports.go
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.
Ok, I'm fine with that.
|
LGTM overall /kind cleanup |
be6a825 to
0f924f3
Compare
0f924f3 to
a50404d
Compare
|
/ping @k82cn |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: k82cn, wgliang The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
Move NodeInfo utils into pkg/scheduler/cache
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 #68958
Special notes for your reviewer:
/sig scheduler
/ping @misterikkit @k82cn @bsalamat
Release note: