Skip to content
Permalink
Browse files

feat: use schedulerapi.MaxPriority instead of hard-coded int

  • Loading branch information...
draveness committed Aug 14, 2019
1 parent 067bf49 commit d3d73aac701cfa7226993f99c9bdddc9c52d09fe
Showing with 3 additions and 1 deletion.
  1. +1 −0 pkg/scheduler/framework/v1alpha1/BUILD
  2. +2 −1 pkg/scheduler/framework/v1alpha1/interface.go
@@ -12,6 +12,7 @@ go_library(
importpath = "k8s.io/kubernetes/pkg/scheduler/framework/v1alpha1",
visibility = ["//visibility:public"],
deps = [
"//pkg/scheduler/api:go_default_library",
"//pkg/scheduler/apis/config:go_default_library",
"//pkg/scheduler/internal/cache:go_default_library",
"//pkg/scheduler/util:go_default_library",
@@ -24,6 +24,7 @@ import (

v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/types"
schedulerapi "k8s.io/kubernetes/pkg/scheduler/api"
internalcache "k8s.io/kubernetes/pkg/scheduler/internal/cache"
)

@@ -57,7 +58,7 @@ const (

const (
// MaxNodeScore is the maximum score a Score plugin is expected to return.
MaxNodeScore int = 10
MaxNodeScore int = schedulerapi.MaxPriority

// MinNodeScore is the minimum score a Score plugin is expected to return.
MinNodeScore int = 0

0 comments on commit d3d73aa

Please sign in to comment.
You can’t perform that action at this time.