cleanup: rework on naming conventions

This commits replaces cephfs -> cephFS
to maintain consistency throughout the
codebase

Updates: #1465

Signed-off-by: Yati Padia <ypadia@redhat.com>
This commit is contained in:
Yati Padia
2021-09-20 15:46:55 +05:30
committed by mergify[bot]
parent 34a21cdbe3
commit 1cf14cd83c
14 changed files with 114 additions and 113 deletions

View File

@ -36,12 +36,12 @@ import (
const (
rbdType = "rbd"
cephfsType = "cephfs"
cephFSType = "cephfs"
livenessType = "liveness"
controllerType = "controller"
rbdDefaultName = "rbd.csi.ceph.com"
cephfsDefaultName = "cephfs.csi.ceph.com"
cephFSDefaultName = "cephfs.csi.ceph.com"
livenessDefaultName = "liveness.csi.ceph.com"
pollTime = 60 // seconds
@ -144,8 +144,8 @@ func getDriverName() string {
switch conf.Vtype {
case rbdType:
return rbdDefaultName
case cephfsType:
return cephfsDefaultName
case cephFSType:
return cephFSDefaultName
case livenessType:
return livenessDefaultName
default:
@ -222,7 +222,7 @@ func main() {
driver := rbd.NewDriver()
driver.Run(&conf)
case cephfsType:
case cephFSType:
driver := cephfs.NewDriver()
driver.Run(&conf)