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
d2fc8754
Commit
d2fc8754
authored
Jul 25, 2018
by
Yecheng Fu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Invalidate CheckVolumeBinding predicate only when VolumeScheduling
feature is enabled.
parent
e09be82a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
factory.go
pkg/scheduler/factory/factory.go
+3
-1
No files found.
pkg/scheduler/factory/factory.go
View file @
d2fc8754
...
@@ -408,7 +408,9 @@ func (c *configFactory) invalidatePredicatesForPvUpdate(oldPV, newPV *v1.Persist
...
@@ -408,7 +408,9 @@ func (c *configFactory) invalidatePredicatesForPvUpdate(oldPV, newPV *v1.Persist
// which will cache PVs in PodBindingCache. When PV got updated, we should
// which will cache PVs in PodBindingCache. When PV got updated, we should
// invalidate cache, otherwise PVAssumeCache.Assume will fail with out of sync
// invalidate cache, otherwise PVAssumeCache.Assume will fail with out of sync
// error.
// error.
invalidPredicates
.
Insert
(
predicates
.
CheckVolumeBindingPred
)
if
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
VolumeScheduling
)
{
invalidPredicates
.
Insert
(
predicates
.
CheckVolumeBindingPred
)
}
for
k
,
v
:=
range
newPV
.
Labels
{
for
k
,
v
:=
range
newPV
.
Labels
{
// If PV update modifies the zone/region labels.
// If PV update modifies the zone/region labels.
if
isZoneRegionLabel
(
k
)
&&
!
reflect
.
DeepEqual
(
v
,
oldPV
.
Labels
[
k
])
{
if
isZoneRegionLabel
(
k
)
&&
!
reflect
.
DeepEqual
(
v
,
oldPV
.
Labels
[
k
])
{
...
...
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