mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Merge pull request #91294 from cofyc/fix90962-donot-change-pod-in-assume-phase
SchedulerVolumeBinder: don't modify assumed pod in AssumePodVolumes
This commit is contained in:
commit
0d6db3dfdd
@ -115,7 +115,6 @@ type SchedulerVolumeBinder interface {
|
|||||||
//
|
//
|
||||||
// It returns true if all volumes are fully bound
|
// It returns true if all volumes are fully bound
|
||||||
//
|
//
|
||||||
// This function will modify assumedPod with the node name.
|
|
||||||
// This function is called serially.
|
// This function is called serially.
|
||||||
AssumePodVolumes(assumedPod *v1.Pod, nodeName string) (allFullyBound bool, err error)
|
AssumePodVolumes(assumedPod *v1.Pod, nodeName string) (allFullyBound bool, err error)
|
||||||
|
|
||||||
@ -334,8 +333,6 @@ func (b *volumeBinder) AssumePodVolumes(assumedPod *v1.Pod, nodeName string) (al
|
|||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
assumedPod.Spec.NodeName = nodeName
|
|
||||||
|
|
||||||
claimsToBind := b.podBindingCache.GetBindings(assumedPod, nodeName)
|
claimsToBind := b.podBindingCache.GetBindings(assumedPod, nodeName)
|
||||||
claimsToProvision := b.podBindingCache.GetProvisionedPVCs(assumedPod, nodeName)
|
claimsToProvision := b.podBindingCache.GetProvisionedPVCs(assumedPod, nodeName)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user