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
6d119267
Commit
6d119267
authored
Apr 14, 2019
by
shinytang6
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up comments
parent
8c4651cc
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 @
6d119267
...
@@ -687,7 +687,7 @@ func (c *VolumeZoneChecker) predicate(pod *v1.Pod, meta PredicateMetadata, nodeI
...
@@ -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
)
pv
,
err
:=
c
.
pvInfo
.
GetPersistentVolumeInfo
(
pvName
)
...
@@ -696,7 +696,7 @@ func (c *VolumeZoneChecker) predicate(pod *v1.Pod, meta PredicateMetadata, nodeI
...
@@ -696,7 +696,7 @@ func (c *VolumeZoneChecker) predicate(pod *v1.Pod, meta PredicateMetadata, nodeI
}
}
if
pv
==
nil
{
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
{
for
k
,
v
:=
range
pv
.
ObjectMeta
.
Labels
{
...
...
pkg/scheduler/algorithmprovider/defaults/defaults.go
View file @
6d119267
...
@@ -59,13 +59,13 @@ func defaultPredicates() sets.String {
...
@@ -59,13 +59,13 @@ func defaultPredicates() sets.String {
// ApplyFeatureGates applies algorithm by feature gates.
// ApplyFeatureGates applies algorithm by feature gates.
func
ApplyFeatureGates
()
{
func
ApplyFeatureGates
()
{
if
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
TaintNodesByCondition
)
{
if
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
TaintNodesByCondition
)
{
// Remove "CheckNodeCondition", "CheckNodeMemoryPressure", "CheckNodePIDPressure
Pred
"
// Remove "CheckNodeCondition", "CheckNodeMemoryPressure", "CheckNodePIDPressure"
// and "CheckNodeDiskPressure" predicates
// and "CheckNodeDiskPressure" predicates
factory
.
RemoveFitPredicate
(
predicates
.
CheckNodeConditionPred
)
factory
.
RemoveFitPredicate
(
predicates
.
CheckNodeConditionPred
)
factory
.
RemoveFitPredicate
(
predicates
.
CheckNodeMemoryPressurePred
)
factory
.
RemoveFitPredicate
(
predicates
.
CheckNodeMemoryPressurePred
)
factory
.
RemoveFitPredicate
(
predicates
.
CheckNodeDiskPressurePred
)
factory
.
RemoveFitPredicate
(
predicates
.
CheckNodeDiskPressurePred
)
factory
.
RemoveFitPredicate
(
predicates
.
CheckNodePIDPressurePred
)
factory
.
RemoveFitPredicate
(
predicates
.
CheckNodePIDPressurePred
)
// Remove key "CheckNodeCondition", "CheckNodeMemoryPressure" and "CheckNodeDiskPressure"
// Remove key "CheckNodeCondition", "CheckNodeMemoryPressure"
, "CheckNodePIDPressure"
and "CheckNodeDiskPressure"
// from ALL algorithm provider
// from ALL algorithm provider
// The key will be removed from all providers which in algorithmProviderMap[]
// The key will be removed from all providers which in algorithmProviderMap[]
// if you just want remove specific provider, call func RemovePredicateKeyFromAlgoProvider()
// 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