Skip to content

Commit

Permalink
fix storage issue (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
DuodenumL authored Apr 11, 2022
1 parent 34dacc4 commit f1cc9e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit f1cc9e2

Please sign in to comment.