Commit 4aa4255c authored by wackxu's avatar wackxu

remove pvc node affinity update check since beta NodeAffinity is immutable

parent 1f69c344
...@@ -405,14 +405,6 @@ func (c *configFactory) invalidatePredicatesForPvUpdate(oldPV, newPV *v1.Persist ...@@ -405,14 +405,6 @@ func (c *configFactory) invalidatePredicatesForPvUpdate(oldPV, newPV *v1.Persist
break break
} }
} }
if utilfeature.DefaultFeatureGate.Enabled(features.VolumeScheduling) {
oldAffinity := oldPV.Spec.NodeAffinity
newAffinity := newPV.Spec.NodeAffinity
// If node affinity of PV is changed.
if !reflect.DeepEqual(oldAffinity, newAffinity) {
invalidPredicates.Insert(predicates.CheckVolumeBindingPred)
}
}
c.equivalencePodCache.InvalidateCachedPredicateItemOfAllNodes(invalidPredicates) c.equivalencePodCache.InvalidateCachedPredicateItemOfAllNodes(invalidPredicates)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment