mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-29 17:50:23 +00:00
cephfs: CSI 0.2.0 refactoring
This commit is contained in:
parent
1b976c5068
commit
43c2fb8e26
@ -32,7 +32,7 @@ func init() {
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
endpoint = flag.String("endpoint", "unix://tmp/csi.sock", "CSI endpoint")
|
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")
|
nodeID = flag.String("nodeid", "", "node id")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ limitations under the License.
|
|||||||
package cephfs
|
package cephfs
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/container-storage-interface/spec/lib/go/csi"
|
"github.com/container-storage-interface/spec/lib/go/csi/v0"
|
||||||
"github.com/pborman/uuid"
|
"github.com/pborman/uuid"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -33,9 +33,5 @@ func newVolumeIdentifier(volOptions *volumeOptions, req *csi.CreateVolumeRequest
|
|||||||
|
|
||||||
volId.id = "csi-cephfs-" + volId.uuid
|
volId.id = "csi-cephfs-" + volId.uuid
|
||||||
|
|
||||||
if volId.name == "" {
|
|
||||||
volId.name = volOptions.Pool + "-dynamic-pvc-" + volId.uuid
|
|
||||||
}
|
|
||||||
|
|
||||||
return &volId
|
return &volId
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user