Use provided node object in volume binding predicate

This commit is contained in:
Michelle Au
2018-04-05 14:35:55 -07:00
parent 1102fd0dcb
commit 8d1cd819ec
6 changed files with 24 additions and 47 deletions

View File

@@ -1597,7 +1597,7 @@ func (c *VolumeBindingChecker) predicate(pod *v1.Pod, meta algorithm.PredicateMe
return false, nil, fmt.Errorf("node not found")
}
unboundSatisfied, boundSatisfied, err := c.binder.Binder.FindPodVolumes(pod, node.Name)
unboundSatisfied, boundSatisfied, err := c.binder.Binder.FindPodVolumes(pod, node)
if err != nil {
return false, nil, err
}