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
c214abb5
Unverified
Commit
c214abb5
authored
Nov 21, 2016
by
Jordan Liggitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Avoid hard-coding list of Node Conditions"
This reverts commit
511b2eca
.
parent
4dba8db4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
factory.go
plugin/pkg/scheduler/factory/factory.go
+9
-16
No files found.
plugin/pkg/scheduler/factory/factory.go
View file @
c214abb5
...
...
@@ -507,22 +507,15 @@ func getNodeConditionPredicate() cache.NodeConditionPredicate {
// - NodeReady condition status is ConditionTrue,
// - NodeOutOfDisk condition status is ConditionFalse,
// - NodeNetworkUnavailable condition status is ConditionFalse.
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
}
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
}
}
// 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