Skip to content

Commit fb9cd79

Browse files
author
Lars Maier
authored
Merge pull request #316 from arangodb/bug-fix/display-capacity
StorageOperator Volume Size Fix
2 parents c9bd0ae + d2fc497 commit fb9cd79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/storage/pv_creator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func (ls *LocalStorage) createPVs(ctx context.Context, apiObject *api.ArangoLoca
100100

101101
// Find size of PVC
102102
volSize := defaultVolumeSize
103-
if reqStorage := claim.Spec.Resources.Requests.StorageEphemeral(); reqStorage != nil {
103+
if reqStorage, ok := claim.Spec.Resources.Requests[v1.ResourceStorage]; ok {
104104
if v, ok := reqStorage.AsInt64(); ok && v > 0 {
105105
volSize = v
106106
}

0 commit comments

Comments
 (0)