mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 14:14:39 +00:00
Fix volume map path during reconstruction
This commit is contained in:
@@ -24,6 +24,7 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
@@ -518,7 +519,8 @@ func (rc *reconciler) reconstructVolume(volume podVolume) (*reconstructedVolume,
|
|||||||
pod.UID,
|
pod.UID,
|
||||||
newMapperErr)
|
newMapperErr)
|
||||||
}
|
}
|
||||||
checkPath, _ = volumeMapper.GetPodDeviceMapPath()
|
mapDir, linkName := volumeMapper.GetPodDeviceMapPath()
|
||||||
|
checkPath = filepath.Join(mapDir, linkName)
|
||||||
} else {
|
} else {
|
||||||
var err error
|
var err error
|
||||||
volumeMounter, err = plugin.NewMounter(
|
volumeMounter, err = plugin.NewMounter(
|
||||||
|
Reference in New Issue
Block a user