-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
cleanup duplicate assignment logic in scheduler #68875
Conversation
pkg/scheduler/factory/factory.go
Outdated
@@ -265,7 +265,6 @@ func NewConfigFactory(args *ConfigFactoryArgs) scheduler.Configurator { | |||
DeleteFunc: c.deletePDBFromCache, | |||
}, | |||
) | |||
c.pdbLister = args.PdbInformer.Lister() |
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.
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(), |
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 is not that necessary, but just to keep the same pattern - init all listers in &configFactory{}, then add watch functions afterwards.
/test pull-kubernetes-e2e-gce-device-plugin-gpu |
/retest |
/kind cleanup |
1549836
to
56fcfc5
Compare
/lgtm |
[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 |
/retest |
1 similar comment
/retest |
What this PR does / why we need it:
Cleanup duplicate assignment logic.
Release note:
/cleanup
/sig scheduling