Commit 422497b4 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #43447 from NickrenREN/vm-updateStates

Automatic merge from submit-queue (batch tested with PRs 42141, 43447) Fix AddPodToVolume: Change arg to volumeGidValue instead of devicePath **Release note**: ```release-note NONE ```
parents 9602aa9d 14feb9ab
...@@ -566,7 +566,7 @@ func (rc *reconciler) updateStates(volumesNeedUpdate map[v1.UniqueVolumeName]*re ...@@ -566,7 +566,7 @@ func (rc *reconciler) updateStates(volumesNeedUpdate map[v1.UniqueVolumeName]*re
} }
} }
// Get the list of volumes from desired state and update OuterVolumeSpecName if the information is avaiable // Get the list of volumes from desired state and update OuterVolumeSpecName if the information is available
volumesToMount := rc.desiredStateOfWorld.GetVolumesToMount() volumesToMount := rc.desiredStateOfWorld.GetVolumesToMount()
for _, volumeToMount := range volumesToMount { for _, volumeToMount := range volumesToMount {
if volume, exists := volumesNeedUpdate[volumeToMount.VolumeName]; exists { if volume, exists := volumesNeedUpdate[volumeToMount.VolumeName]; exists {
...@@ -591,7 +591,7 @@ func (rc *reconciler) updateStates(volumesNeedUpdate map[v1.UniqueVolumeName]*re ...@@ -591,7 +591,7 @@ func (rc *reconciler) updateStates(volumesNeedUpdate map[v1.UniqueVolumeName]*re
volume.volumeName, volume.volumeName,
volume.mounter, volume.mounter,
volume.outerVolumeSpecName, volume.outerVolumeSpecName,
volume.devicePath) volume.volumeGidValue)
if err != nil { if err != nil {
glog.Errorf("Could not add pod to volume information to actual state of world: %v", err) glog.Errorf("Could not add pod to volume information to actual state of world: %v", err)
continue continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment