Skip to content

Commit

Permalink
server: saving quota in GiB instead GB
Browse files Browse the repository at this point in the history
Signed-off-by: rchikatw <[email protected]>
  • Loading branch information
rchikatw committed Nov 13, 2024
1 parent 99fdb66 commit f49793a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/provider/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,9 @@ func (s *OCSProviderServer) getExternalResources(ctx context.Context, consumerRe
},
},
Quota: corev1.ResourceQuotaSpec{
Hard: corev1.ResourceList{"requests.storage": *resource.NewScaledQuantity(
int64(consumerResource.Spec.StorageQuotaInGiB),
resource.Giga,
Hard: corev1.ResourceList{"requests.storage": *resource.NewQuantity(
int64(consumerResource.Spec.StorageQuotaInGiB*1024*1024*1024),
resource.BinarySI,
)},
},
}
Expand Down

0 comments on commit f49793a

Please sign in to comment.