Refactor rbdplugin for CSI 0.2.0 spec

This commit is contained in:
Serguei Bezverkhi
2018-02-15 08:51:23 -05:00
parent 1f1e8cea37
commit de16b0f5e9
5 changed files with 12 additions and 156 deletions

View File

@ -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

View File

@ -42,7 +42,7 @@ type rbd struct {
var (
rbdDriver *rbd
version = csi.Version{
Minor: 1,
Minor: 2,
}
)