mirror of
https://git.mirrors.martin98.com/https://github.com/ceph/ceph-csi.git
synced 2025-09-24 07:33:14 +08:00
remove cephRootPrefix as global var
This commit is contained in:
parent
295202b98e
commit
2097741607
@ -30,12 +30,8 @@ const (
|
|||||||
namespacePrefix = "ns-"
|
namespacePrefix = "ns-"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
|
||||||
cephRootPrefix = "/controller/volumes/root-"
|
|
||||||
)
|
|
||||||
|
|
||||||
func getCephRootPathLocal(volID volumeID) string {
|
func getCephRootPathLocal(volID volumeID) string {
|
||||||
return PluginFolder + cephRootPrefix + string(volID)
|
return fmt.Sprintf("%s/controller/volumes/root-%s", PluginFolder, string(volID))
|
||||||
}
|
}
|
||||||
|
|
||||||
func getCephRootVolumePathLocal(volID volumeID) string {
|
func getCephRootVolumePathLocal(volID volumeID) string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user