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
445fc9fe
Unverified
Commit
445fc9fe
authored
Apr 14, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Apr 14, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #76563 from shinytang6/clean-up-scheduler
correct some comments in scheduler code
parents
76b877a9
6d119267
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
predicates.go
pkg/scheduler/algorithm/predicates/predicates.go
+2
-2
defaults.go
pkg/scheduler/algorithmprovider/defaults/defaults.go
+2
-2
No files found.
pkg/scheduler/algorithm/predicates/predicates.go
View file @
445fc9fe
...
...
@@ -687,7 +687,7 @@ func (c *VolumeZoneChecker) predicate(pod *v1.Pod, meta PredicateMetadata, nodeI
}
}
}
return
false
,
nil
,
fmt
.
Errorf
(
"PersistentVolumeClaim
is not b
ound: %q"
,
pvcName
)
return
false
,
nil
,
fmt
.
Errorf
(
"PersistentVolumeClaim
was not f
ound: %q"
,
pvcName
)
}
pv
,
err
:=
c
.
pvInfo
.
GetPersistentVolumeInfo
(
pvName
)
...
...
@@ -696,7 +696,7 @@ func (c *VolumeZoneChecker) predicate(pod *v1.Pod, meta PredicateMetadata, nodeI
}
if
pv
==
nil
{
return
false
,
nil
,
fmt
.
Errorf
(
"PersistentVolume not found: %q"
,
pvName
)
return
false
,
nil
,
fmt
.
Errorf
(
"PersistentVolume
was
not found: %q"
,
pvName
)
}
for
k
,
v
:=
range
pv
.
ObjectMeta
.
Labels
{
...
...
pkg/scheduler/algorithmprovider/defaults/defaults.go
View file @
445fc9fe
...
...
@@ -59,13 +59,13 @@ func defaultPredicates() sets.String {
// ApplyFeatureGates applies algorithm by feature gates.
func
ApplyFeatureGates
()
{
if
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
TaintNodesByCondition
)
{
// Remove "CheckNodeCondition", "CheckNodeMemoryPressure", "CheckNodePIDPressure
Pred
"
// Remove "CheckNodeCondition", "CheckNodeMemoryPressure", "CheckNodePIDPressure"
// and "CheckNodeDiskPressure" predicates
factory
.
RemoveFitPredicate
(
predicates
.
CheckNodeConditionPred
)
factory
.
RemoveFitPredicate
(
predicates
.
CheckNodeMemoryPressurePred
)
factory
.
RemoveFitPredicate
(
predicates
.
CheckNodeDiskPressurePred
)
factory
.
RemoveFitPredicate
(
predicates
.
CheckNodePIDPressurePred
)
// Remove key "CheckNodeCondition", "CheckNodeMemoryPressure" and "CheckNodeDiskPressure"
// Remove key "CheckNodeCondition", "CheckNodeMemoryPressure"
, "CheckNodePIDPressure"
and "CheckNodeDiskPressure"
// from ALL algorithm provider
// The key will be removed from all providers which in algorithmProviderMap[]
// if you just want remove specific provider, call func RemovePredicateKeyFromAlgoProvider()
...
...
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