Skip to content
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

feat: remove suspendedDaemonPods from daemon controller #84323

Conversation

draveness
Copy link
Contributor

@draveness draveness commented Oct 25, 2019

/kind cleanup
/sig scheduling
/sig apps

What this PR does / why we need it:

After #82795 got merged, nodeShouldRunDaemonPod always returns the same value in wantToRun and shouldSchedule. The original path [1] will not execute anymore, we could remove suspenedDaemonPods from the daemon controller.

Which issue(s) this PR fixes:

Part of #82702

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@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. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. sig/apps Categorizes an issue or PR as relevant to SIG Apps. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Oct 25, 2019

switch {
case wantToRun && !shouldSchedule:
// If daemon pod is supposed to run, but can not be scheduled, add to suspended list.
dsc.addSuspendedDaemonPods(node.Name, dsKey)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

[1] wantToRun and shouldScheudle returns the same all the time

@draveness draveness force-pushed the feature/remove-suspended-daemon-pods branch from 5b03dab to dc437a7 Compare October 25, 2019 01:17
@draveness
Copy link
Contributor Author

/assign @k82cn @kow3ns @janetkuo
/priority important-soon

@k8s-ci-robot k8s-ci-robot added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Oct 25, 2019
@draveness draveness mentioned this pull request Oct 25, 2019
6 tasks
@draveness
Copy link
Contributor Author

/retest

@k82cn
Copy link
Member

k82cn commented Oct 25, 2019

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 25, 2019
@draveness
Copy link
Contributor Author

Kindly ping @janetkuo @kow3ns for approval

@kow3ns
Copy link
Member

kow3ns commented Nov 3, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: draveness, k82cn, kow3ns

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 3, 2019
@k8s-ci-robot k8s-ci-robot merged commit d8ab3f2 into kubernetes:master Nov 3, 2019
@k8s-ci-robot k8s-ci-robot added this to the v1.17 milestone Nov 3, 2019
@draveness draveness deleted the feature/remove-suspended-daemon-pods branch November 3, 2019 07:29
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/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants