mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
Refactor rbdplugin for CSI 0.2.0 spec
This commit is contained in:
@ -84,9 +84,9 @@ func (cs *controllerServer) CreateVolume(ctx context.Context, req *csi.CreateVol
|
||||
}
|
||||
|
||||
return &csi.CreateVolumeResponse{
|
||||
VolumeInfo: &csi.VolumeInfo{
|
||||
Volume: &csi.Volume{
|
||||
Id: volumeID,
|
||||
CapacityBytes: uint64(volSizeBytes),
|
||||
CapacityBytes: int64(volSizeBytes),
|
||||
Attributes: req.GetParameters(),
|
||||
},
|
||||
}, nil
|
||||
|
@ -42,7 +42,7 @@ type rbd struct {
|
||||
var (
|
||||
rbdDriver *rbd
|
||||
version = csi.Version{
|
||||
Minor: 1,
|
||||
Minor: 2,
|
||||
}
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user