mirror of https://github.com/k3s-io/k3s
delete some para no need used in local volume
parent
d50e920906
commit
0c79df1bcb
|
@ -573,7 +573,7 @@ type localVolumeUnmapper struct {
|
||||||
var _ volume.BlockVolumeUnmapper = &localVolumeUnmapper{}
|
var _ volume.BlockVolumeUnmapper = &localVolumeUnmapper{}
|
||||||
|
|
||||||
// TearDownDevice will undo SetUpDevice procedure. In local PV, all of this already handled by operation_generator.
|
// TearDownDevice will undo SetUpDevice procedure. In local PV, all of this already handled by operation_generator.
|
||||||
func (u *localVolumeUnmapper) TearDownDevice(mapPath, devicePath string) error {
|
func (u *localVolumeUnmapper) TearDownDevice(mapPath, _ string) error {
|
||||||
glog.V(4).Infof("local: TearDownDevice completed for: %s", mapPath)
|
glog.V(4).Infof("local: TearDownDevice completed for: %s", mapPath)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,6 @@ const (
|
||||||
testMountPath = "pods/poduid/volumes/kubernetes.io~local-volume/pvA"
|
testMountPath = "pods/poduid/volumes/kubernetes.io~local-volume/pvA"
|
||||||
testGlobalPath = "plugins/kubernetes.io~local-volume/volumeDevices/pvA"
|
testGlobalPath = "plugins/kubernetes.io~local-volume/volumeDevices/pvA"
|
||||||
testPodPath = "pods/poduid/volumeDevices/kubernetes.io~local-volume"
|
testPodPath = "pods/poduid/volumeDevices/kubernetes.io~local-volume"
|
||||||
testNodeName = "fakeNodeName"
|
|
||||||
testBlockFormattingToFSGlobalPath = "plugins/kubernetes.io/local-volume/mounts/pvA"
|
testBlockFormattingToFSGlobalPath = "plugins/kubernetes.io/local-volume/mounts/pvA"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue