mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-21 20:40:20 +00:00
commit
c029072ef0
@ -35,7 +35,7 @@ var (
|
|||||||
driverName = flag.String("drivername", "csi-rbdplugin", "name of the driver")
|
driverName = flag.String("drivername", "csi-rbdplugin", "name of the driver")
|
||||||
nodeID = flag.String("nodeid", "", "node id")
|
nodeID = flag.String("nodeid", "", "node id")
|
||||||
containerized = flag.Bool("containerized", true, "whether run as containerized")
|
containerized = flag.Bool("containerized", true, "whether run as containerized")
|
||||||
metadataStorage = flag.String("metadatastorage", "", "metadata persistence method [node|k8s_configmap]")
|
metadataStorage = flag.String("metadatastorage", "node", "metadata persistence method [node|k8s_configmap]")
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -50,6 +50,10 @@ func main() {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if *metadataStorage != "node" && *metadataStorage != "k8s_configmap" {
|
||||||
|
glog.Errorf("invalid cache persistent option: %s", *metadataStorage)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
cp, err := util.NewCachePersister(*metadataStorage, *driverName)
|
cp, err := util.NewCachePersister(*metadataStorage, *driverName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("failed to define cache persistence method: %v", err)
|
glog.Errorf("failed to define cache persistence method: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user