Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
ec35e044
Commit
ec35e044
authored
Jan 05, 2017
by
Guangya Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected a typo in scheduler factory.go.
parent
ee03b9b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
factory.go
plugin/pkg/scheduler/factory/factory.go
+1
-1
No files found.
plugin/pkg/scheduler/factory/factory.go
View file @
ec35e044
...
@@ -345,7 +345,7 @@ func (f *ConfigFactory) CreateFromConfig(policy schedulerapi.Policy) (*scheduler
...
@@ -345,7 +345,7 @@ func (f *ConfigFactory) CreateFromConfig(policy schedulerapi.Policy) (*scheduler
// Creates a scheduler from a set of registered fit predicate keys and priority keys.
// Creates a scheduler from a set of registered fit predicate keys and priority keys.
func
(
f
*
ConfigFactory
)
CreateFromKeys
(
predicateKeys
,
priorityKeys
sets
.
String
,
extenders
[]
algorithm
.
SchedulerExtender
)
(
*
scheduler
.
Config
,
error
)
{
func
(
f
*
ConfigFactory
)
CreateFromKeys
(
predicateKeys
,
priorityKeys
sets
.
String
,
extenders
[]
algorithm
.
SchedulerExtender
)
(
*
scheduler
.
Config
,
error
)
{
glog
.
V
(
2
)
.
Infof
(
"
c
reating scheduler with fit predicates '%v' and priority functions '%v"
,
predicateKeys
,
priorityKeys
)
glog
.
V
(
2
)
.
Infof
(
"
C
reating scheduler with fit predicates '%v' and priority functions '%v"
,
predicateKeys
,
priorityKeys
)
if
f
.
HardPodAffinitySymmetricWeight
<
0
||
f
.
HardPodAffinitySymmetricWeight
>
100
{
if
f
.
HardPodAffinitySymmetricWeight
<
0
||
f
.
HardPodAffinitySymmetricWeight
>
100
{
return
nil
,
fmt
.
Errorf
(
"invalid hardPodAffinitySymmetricWeight: %d, must be in the range 0-100"
,
f
.
HardPodAffinitySymmetricWeight
)
return
nil
,
fmt
.
Errorf
(
"invalid hardPodAffinitySymmetricWeight: %d, must be in the range 0-100"
,
f
.
HardPodAffinitySymmetricWeight
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment