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

[Issue-1084] Addjust scheduler extender algorithm #1086

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Andrzej-Zukowski
Copy link
Collaborator

Purpose

Resolves #1084

Describe your changes

PR checklist

  • Add link to the issue
  • Choose Project
  • Choose PR label
  • New unit tests added
  • Modified code has meaningful comments
  • All TODOs are linked with the issues
  • All comments are resolved

Testing

Provide test details

Copy link

codecov bot commented Feb 19, 2024

Codecov Report

Attention: 13 lines in your changes are missing coverage. Please review.

Comparison is base (08b8de3) 72.76% compared to head (69523d8) 72.78%.
Report is 10 commits behind head on master.

Files Patch % Lines
pkg/scheduler/extender/extender.go 0.00% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1086      +/-   ##
==========================================
+ Coverage   72.76%   72.78%   +0.02%     
==========================================
  Files          63       63              
  Lines        8949     8956       +7     
==========================================
+ Hits         6512     6519       +7     
- Misses       2147     2149       +2     
+ Partials      290      288       -2     
Flag Coverage Δ
unittests 72.78% <0.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

return
pod := extenderArgs.Pod
var hostPriority []schedulerapi.HostPriority
requests, _ := e.gatherCapacityRequestsByProvisioner(context.TODO(), pod)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to check error?

ll.Errorf("Unable to score %v", err)
return
}
ll.Infof("Score results for pod %s: %v", pod, hostPriority)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Better to print just pod namespace and name

return
pod := extenderArgs.Pod
var hostPriority []schedulerapi.HostPriority
requests, _ := e.gatherCapacityRequestsByProvisioner(context.TODO(), pod)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Better to replace TODO context by context with value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scheduler extender algorithm modification
2 participants