Skip to content

Scheduler: remove direct dependency for k8s.io/kubernetes/pkg/util/node #97818

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

Merged
merged 1 commit into from
Mar 5, 2021

Conversation

damemi
Copy link
Member

@damemi damemi commented Jan 7, 2021

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
This replaces #90040, part of the ongoing effort to reduce scheduler dependencies on in-tree k8s code by gradually moving helpers to a staging repo

Which issue(s) this PR fixes:
Ref #89930

NONE

/sig scheduling

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Jan 7, 2021
@k8s-ci-robot k8s-ci-robot added the sig/apps Categorizes an issue or PR as relevant to SIG Apps. label Jan 7, 2021
@k8s-ci-robot k8s-ci-robot requested review from foxish and k82cn January 7, 2021 20:06
@damemi damemi force-pushed the remove-util-node-dep branch 2 times, most recently from 7f40c32 to 415723d Compare January 7, 2021 20:46
Copy link
Member Author

@damemi damemi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/cc @ahg-g @ingvagabund

would like to get back to working on these this year :)

@ahg-g
Copy link
Member

ahg-g commented Jan 7, 2021

/lgtm

for the scheduler

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 7, 2021
@damemi
Copy link
Member Author

damemi commented Jan 7, 2021

/cc @soltysh @lavalamp
for component-helpers/vendor and pkg/, respectively

@@ -0,0 +1,57 @@
/*
Copy link
Contributor

@ingvagabund ingvagabund Jan 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

k8s.io/component-helpers/node directory respects the sig name. Though, I'd like to avoid using util keyword in the path. Can you use k8s.io/component-helpers/node/failuredomain or similar (e.g. topology), that will name a group of semantically close helpers together?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to not using util as the pkg name, topology sounds reasonable to me.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, updated to topology

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to change k8s.io/component-helpers/node/util

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah, forgot to actually run make update. Done

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vendor/modules.txt still has k8s.io/component-helpers/node/util listed

@damemi damemi force-pushed the remove-util-node-dep branch from 415723d to fad7a1c Compare January 8, 2021 20:00
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 8, 2021
@damemi damemi force-pushed the remove-util-node-dep branch 2 times, most recently from b882245 to 7b5b527 Compare January 11, 2021 15:12
@damemi
Copy link
Member Author

damemi commented Jan 26, 2021

Bumping this, I believe I addressed the feedback that was already requested

@lavalamp
Copy link
Contributor

Someone from sig node should sign off. (and add an OWNERS file for component-helpers/node?)

@damemi
Copy link
Member Author

damemi commented Jan 27, 2021

@lavalamp this does add an OWNERS for component-helpers/node (https://github.com/kubernetes/kubernetes/pull/97818/files#diff-1fb4d3172057ae242a64e8442ec2ab6c0a4aaebbed96464ece57cb642829710d) :) Agree that they should sign off on this
/sig node

@lavalamp
Copy link
Contributor

For the owners file:
/approve

For someone from node to look at this:
/hold

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jan 28, 2021
@damemi
Copy link
Member Author

damemi commented Jan 28, 2021

/cc @sjenning
could you ptal for node approval? Thanks!

@k8s-ci-robot k8s-ci-robot requested a review from sjenning January 28, 2021 15:00
@mrunalp
Copy link
Contributor

mrunalp commented Mar 1, 2021

Needs rebase

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 1, 2021
@damemi damemi force-pushed the remove-util-node-dep branch from 7b5b527 to 905b349 Compare March 2, 2021 17:29
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 2, 2021
@damemi
Copy link
Member Author

damemi commented Mar 2, 2021

Rebased

@damemi damemi force-pushed the remove-util-node-dep branch from 905b349 to b31eeae Compare March 2, 2021 18:42
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 3, 2021
@damemi damemi force-pushed the remove-util-node-dep branch from b31eeae to af04508 Compare March 4, 2021 15:32
Copy link
Member

@troy0820 troy0820 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 4, 2021
@ahg-g
Copy link
Member

ahg-g commented Mar 4, 2021

/lgtm

for scheduler

@derekwaynecarr
Copy link
Member

/lgtm
/approve

for sig-node

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: damemi, derekwaynecarr, lavalamp

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ingvagabund
Copy link
Contributor

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 5, 2021
@k8s-ci-robot
Copy link
Contributor

@damemi: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
pull-kubernetes-unit af04508 link /test pull-kubernetes-unit

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.

@ingvagabund
Copy link
Contributor

/retest

@k8s-ci-robot k8s-ci-robot merged commit 9067b56 into kubernetes:master Mar 5, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.21 milestone Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note-none Denotes a PR that doesn't merit a release note. sig/apps Categorizes an issue or PR as relevant to SIG Apps. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
Development

Successfully merging this pull request may close these issues.

9 participants