From 0459c94f1a8ef5bfc40d1e511e20607a2ea66faa Mon Sep 17 00:00:00 2001 From: Huamin Chen Date: Wed, 9 Jan 2019 15:20:08 +0000 Subject: [PATCH] fix cache persistent default for cephfs Signed-off-by: Huamin Chen --- cephfs/main.go | 2 +- rbd/main.go | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/cephfs/main.go b/cephfs/main.go index 7d53f5515..e77089832 100644 --- a/cephfs/main.go +++ b/cephfs/main.go @@ -35,7 +35,7 @@ var ( driverName = flag.String("drivername", "csi-cephfsplugin", "name of the driver") nodeId = flag.String("nodeid", "", "node id") volumeMounter = flag.String("volumemounter", "", "default volume mounter (possible options are 'kernel', 'fuse')") - metadataStorage = flag.String("metadatastorage", "", "metadata persistence method [node|k8s_configmap]") + metadataStorage = flag.String("metadatastorage", "node", "metadata persistence method [node|k8s_configmap]") ) func main() { diff --git a/rbd/main.go b/rbd/main.go index 71b4c7416..b85e93b63 100644 --- a/rbd/main.go +++ b/rbd/main.go @@ -50,10 +50,6 @@ func main() { 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) if err != nil { glog.Errorf("failed to define cache persistence method: %v", err)