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

cleanup duplicate assignment logic in scheduler #68875

Merged
merged 1 commit into from
Sep 28, 2018

Conversation

Huang-Wei
Copy link
Member

What this PR does / why we need it:
Cleanup duplicate assignment logic.

Release note:

NONE

/cleanup
/sig scheduling

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Sep 20, 2018
@@ -265,7 +265,6 @@ func NewConfigFactory(args *ConfigFactoryArgs) scheduler.Configurator {
DeleteFunc: c.deletePDBFromCache,
},
)
c.pdbLister = args.PdbInformer.Lister()
Copy link
Member Author

Choose a reason for hiding this comment

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

already assigned in L187

@@ -177,6 +177,7 @@ func NewConfigFactory(args *ConfigFactoryArgs) scheduler.Configurator {
client: args.Client,
podLister: schedulerCache,
podQueue: core.NewSchedulingQueue(),
nodeLister: args.NodeInformer.Lister(),
Copy link
Member Author

Choose a reason for hiding this comment

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

this is not that necessary, but just to keep the same pattern - init all listers in &configFactory{}, then add watch functions afterwards.

@Huang-Wei
Copy link
Member Author

/test pull-kubernetes-e2e-gce-device-plugin-gpu

@Huang-Wei
Copy link
Member Author

/retest

@k82cn
Copy link
Member

k82cn commented Sep 24, 2018

/kind cleanup
/lgtm

@k8s-ci-robot k8s-ci-robot added 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. approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Sep 24, 2018
@Huang-Wei Huang-Wei force-pushed the minor-scheduler-cleanup branch from 1549836 to 56fcfc5 Compare September 27, 2018 18:38
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 27, 2018
@ravisantoshgudimetla
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 27, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Huang-Wei, k82cn, ravisantoshgudimetla

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

@Huang-Wei
Copy link
Member Author

/retest

1 similar comment
@Huang-Wei
Copy link
Member Author

/retest

@k8s-ci-robot k8s-ci-robot merged commit c79ad5a into kubernetes:master Sep 28, 2018
@Huang-Wei Huang-Wei deleted the minor-scheduler-cleanup branch September 28, 2018 05:21
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. release-note-none Denotes a PR that doesn't merit a release note. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants