mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #103154 from jsafrane/fix-asw-mounter
Update mounter interface in volume manager
This commit is contained in:
commit
49ab9ac160
@ -517,6 +517,11 @@ func (asw *actualStateOfWorld) AddPodToVolume(markVolumeOpts operationexecutor.M
|
||||
// If pod exists, reset remountRequired value
|
||||
podObj.remountRequired = false
|
||||
podObj.volumeMountStateForPod = markVolumeOpts.VolumeMountState
|
||||
if mounter != nil {
|
||||
// The mounter stored in the object may have old information,
|
||||
// use the newest one.
|
||||
podObj.mounter = mounter
|
||||
}
|
||||
asw.attachedVolumes[volumeName].mountedPods[podName] = podObj
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user