diff --git a/resources/storage/storage.go b/resources/storage/storage.go index 813625505..0ee763dd0 100644 --- a/resources/storage/storage.go +++ b/resources/storage/storage.go @@ -22,6 +22,9 @@ func MakeRequest(opts types.ResourceOptions) (resourcetypes.ResourceRequest, err request: opts.StorageRequest, limit: opts.StorageLimit, } + if sr.limit > 0 && sr.request == 0 { + sr.request = sr.limit + } // add volume request / limit to storage request / limit if len(opts.VolumeRequest) != 0 && len(opts.VolumeLimit) != len(opts.VolumeRequest) { return nil, errors.Wrapf(types.ErrBadVolume, "volume request and limit must be the same length")