Skip to content

Commit

Permalink
Merge pull request kubernetes#91294 from cofyc/fix90962-donot-change-…
Browse files Browse the repository at this point in the history
…pod-in-assume-phase

SchedulerVolumeBinder: don't modify assumed pod in AssumePodVolumes
  • Loading branch information
k8s-ci-robot authored May 21, 2020
2 parents e418766 + f685af3 commit 0d6db3d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/controller/volume/scheduling/scheduler_binder.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ type SchedulerVolumeBinder interface {
//
// It returns true if all volumes are fully bound
//
// This function will modify assumedPod with the node name.
// This function is called serially.
AssumePodVolumes(assumedPod *v1.Pod, nodeName string) (allFullyBound bool, err error)

Expand Down Expand Up @@ -334,8 +333,6 @@ func (b *volumeBinder) AssumePodVolumes(assumedPod *v1.Pod, nodeName string) (al
return true, nil
}

assumedPod.Spec.NodeName = nodeName

claimsToBind := b.podBindingCache.GetBindings(assumedPod, nodeName)
claimsToProvision := b.podBindingCache.GetProvisionedPVCs(assumedPod, nodeName)

Expand Down

0 comments on commit 0d6db3d

Please sign in to comment.