@@ -42,7 +42,7 @@ const (
42
42
defaultFSType = "ext4"
43
43
)
44
44
45
- // This is the primary entrypoint for volume plugins.
45
+ // ProbeVolumePlugins is the primary entrypoint for volume plugins.
46
46
func ProbeVolumePlugins () []volume.VolumePlugin {
47
47
return []volume.VolumePlugin {& localVolumePlugin {}}
48
48
}
@@ -587,15 +587,15 @@ func (u *localVolumeUnmapper) TearDownDevice(mapPath, _ string) error {
587
587
588
588
// GetGlobalMapPath returns global map path and error.
589
589
// path: plugins/kubernetes.io/kubernetes.io/local-volume/volumeDevices/{volumeName}
590
- func (lv * localVolume ) GetGlobalMapPath (spec * volume.Spec ) (string , error ) {
591
- return filepath .Join (lv .plugin .host .GetVolumeDevicePluginDir (utilstrings .EscapeQualifiedName (localVolumePluginName )),
592
- lv .volName ), nil
590
+ func (l * localVolume ) GetGlobalMapPath (spec * volume.Spec ) (string , error ) {
591
+ return filepath .Join (l .plugin .host .GetVolumeDevicePluginDir (utilstrings .EscapeQualifiedName (localVolumePluginName )),
592
+ l .volName ), nil
593
593
}
594
594
595
595
// GetPodDeviceMapPath returns pod device map path and volume name.
596
596
// path: pods/{podUid}/volumeDevices/kubernetes.io~local-volume
597
597
// volName: local-pv-ff0d6d4
598
- func (lv * localVolume ) GetPodDeviceMapPath () (string , string ) {
599
- return lv .plugin .host .GetPodVolumeDeviceDir (lv .podUID ,
600
- utilstrings .EscapeQualifiedName (localVolumePluginName )), lv .volName
598
+ func (l * localVolume ) GetPodDeviceMapPath () (string , string ) {
599
+ return l .plugin .host .GetPodVolumeDeviceDir (l .podUID ,
600
+ utilstrings .EscapeQualifiedName (localVolumePluginName )), l .volName
601
601
}
0 commit comments