remove pvc node affinity update check since beta NodeAffinity is immutable

pull/8/head
wackxu 2018-03-31 15:13:49 +08:00
parent 1f69c34478
commit 4aa4255cf1
1 changed files with 0 additions and 8 deletions

View File

@ -405,14 +405,6 @@ func (c *configFactory) invalidatePredicatesForPvUpdate(oldPV, newPV *v1.Persist
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)
}