Merge pull request #121 from rootfs/dev

fix cache persistent default for cephfs
This commit is contained in:
Róbert Vašek 2019-01-09 16:35:31 +01:00 committed by GitHub
commit 52cf4aa902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View File

@ -35,7 +35,7 @@ var (
driverName = flag.String("drivername", "csi-cephfsplugin", "name of the driver") driverName = flag.String("drivername", "csi-cephfsplugin", "name of the driver")
nodeId = flag.String("nodeid", "", "node id") nodeId = flag.String("nodeid", "", "node id")
volumeMounter = flag.String("volumemounter", "", "default volume mounter (possible options are 'kernel', 'fuse')") 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() { func main() {

View File

@ -50,10 +50,6 @@ 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)