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

Feature v1.5.1 #1092

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions pkg/scheduler/extender/extender.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,20 @@
e.Lock()
defer e.Unlock()

hostPriority, err := e.score(extenderArgs.Nodes.Items)
if err != nil {
ll.Errorf("Unable to score %v", err)
return
pod := extenderArgs.Pod
var hostPriority []schedulerapi.HostPriority
requests, err := e.gatherCapacityRequestsByProvisioner(req.Context(), pod)
if err == nil && len(requests) != 0 {
hostPriority, err = e.score(extenderArgs.Nodes.Items)
if err != nil {
ll.Errorf("Unable to score %v", err)
return
}
ll.Infof("Score results for pod %s: %v", pod, hostPriority)
} else {
ll.Infof("Skip skoring for pod: %s", pod)

Check warning on line 209 in pkg/scheduler/extender/extender.go

View check run for this annotation

Codecov / codecov/patch

pkg/scheduler/extender/extender.go#L198-L209

Added lines #L198 - L209 were not covered by tests
}
ll.Infof("Score results: %v", hostPriority)
extenderRes := (schedulerapi.HostPriorityList)(hostPriority)

if err := resp.Encode(&extenderRes); err != nil {
ll.Errorf("Unable to write response %v: %v", extenderRes, err)
}
Expand Down
2 changes: 1 addition & 1 deletion variables.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CRD_OPTIONS ?= crd
### version
MAJOR := 1
MINOR := 5
PATCH := 0
PATCH := 1
PRODUCT_VERSION ?= ${MAJOR}.${MINOR}.${PATCH}
BUILD_REL_A := $(shell git rev-list HEAD |wc -l)
BUILD_REL_B := $(shell git rev-parse --short HEAD)
Expand Down
Loading