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
05d067d6
Commit
05d067d6
authored
Nov 15, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Nov 15, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #36210 from justinsb/flex_node_conditions
Automatic merge from submit-queue Avoid hard-coding list of Node Conditions
parents
6e3dfacb
511b2eca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
factory.go
plugin/pkg/scheduler/factory/factory.go
+16
-9
No files found.
plugin/pkg/scheduler/factory/factory.go
View file @
05d067d6
...
...
@@ -507,15 +507,22 @@ func getNodeConditionPredicate() cache.NodeConditionPredicate {
// - NodeReady condition status is ConditionTrue,
// - NodeOutOfDisk condition status is ConditionFalse,
// - NodeNetworkUnavailable condition status is ConditionFalse.
if
cond
.
Type
==
api
.
NodeReady
&&
cond
.
Status
!=
api
.
ConditionTrue
{
glog
.
V
(
4
)
.
Infof
(
"Ignoring node %v with %v condition status %v"
,
node
.
Name
,
cond
.
Type
,
cond
.
Status
)
return
false
}
else
if
cond
.
Type
==
api
.
NodeOutOfDisk
&&
cond
.
Status
!=
api
.
ConditionFalse
{
glog
.
V
(
4
)
.
Infof
(
"Ignoring node %v with %v condition status %v"
,
node
.
Name
,
cond
.
Type
,
cond
.
Status
)
return
false
}
else
if
cond
.
Type
==
api
.
NodeNetworkUnavailable
&&
cond
.
Status
!=
api
.
ConditionFalse
{
glog
.
V
(
4
)
.
Infof
(
"Ignoring node %v with %v condition status %v"
,
node
.
Name
,
cond
.
Type
,
cond
.
Status
)
return
false
switch
cond
.
Type
{
case
api
.
NodeReady
:
if
cond
.
Status
!=
api
.
ConditionTrue
{
glog
.
V
(
4
)
.
Infof
(
"Ignoring node %v with %v condition status %v"
,
node
.
Name
,
cond
.
Type
,
cond
.
Status
)
return
false
}
case
api
.
NodeMemoryPressure
,
api
.
NodeDiskPressure
:
// We don't block on "pressure" conditions; these are warnings, not errors!
default
:
// We assume everything else is blocking if the condition is True or Unknown
if
cond
.
Status
!=
api
.
ConditionFalse
{
glog
.
V
(
4
)
.
Infof
(
"Ignoring node %v with %v condition status %v"
,
node
.
Name
,
cond
.
Type
,
cond
.
Status
)
return
false
}
}
}
// Ignore nodes that are marked unschedulable
...
...
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