cephfs: CSI 0.2.0 refactoring

This commit is contained in:
gman 2018-03-20 15:55:45 +01:00
parent 1b976c5068
commit 43c2fb8e26
2 changed files with 2 additions and 6 deletions

View File

@ -32,7 +32,7 @@ func init() {
var (
endpoint = flag.String("endpoint", "unix://tmp/csi.sock", "CSI endpoint")
driverName = flag.String("drivername", "cephfsplugin", "name of the driver")
driverName = flag.String("drivername", "csi-cephfsplugin", "name of the driver")
nodeID = flag.String("nodeid", "", "node id")
)

View File

@ -17,7 +17,7 @@ limitations under the License.
package cephfs
import (
"github.com/container-storage-interface/spec/lib/go/csi"
"github.com/container-storage-interface/spec/lib/go/csi/v0"
"github.com/pborman/uuid"
)
@ -33,9 +33,5 @@ func newVolumeIdentifier(volOptions *volumeOptions, req *csi.CreateVolumeRequest
volId.id = "csi-cephfs-" + volId.uuid
if volId.name == "" {
volId.name = volOptions.Pool + "-dynamic-pvc-" + volId.uuid
}
return &volId
}