mirror of https://github.com/k3s-io/k3s
Merge pull request #61974 from wackxu/rmlan
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. remove pvc node affinity update check since beta NodeAffinity is immu… …table **What this PR does / why we need it**: **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: xref https://github.com/kubernetes/kubernetes/pull/61816#discussion_r178212208 **Special notes for your reviewer**: /assign @msau42 **Release note**: ```release-note NONE ```pull/8/head
commit
aaed11fed7
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue