cephfs: no need to check for zero volume size

At present there is a 'todo' to check for zero volume size
in the createVolume request which in unwanted, ie the pvc
creation with size 0 fail from the kubernetes api validation itself:

For ex:

```
..spec.resources[storage]: Invalid value: "0": must be greater than zero```
```
so we dont need any extra check in the controller server

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal 2021-09-01 12:00:12 +05:30 committed by mergify[bot]
parent 9e55f015de
commit df2d9548ae

View File

@ -188,7 +188,6 @@ func (cs *ControllerServer) CreateVolume(
if req.GetCapacityRange() != nil {
volOptions.Size = util.RoundOffBytes(req.GetCapacityRange().GetRequiredBytes())
}
// TODO need to add check for 0 volume size
parentVol, pvID, sID, err := checkContentSource(ctx, req, cr)
if err != nil {