Skip to content

Commit

Permalink
Show the correct volume size for volumes provided by the storage oper…
Browse files Browse the repository at this point in the history
…ator.
  • Loading branch information
maierlars committed Dec 14, 2018
1 parent c9bd0ae commit d2fc497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/pv_creator.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (ls *LocalStorage) createPVs(ctx context.Context, apiObject *api.ArangoLoca

// Find size of PVC
volSize := defaultVolumeSize
if reqStorage := claim.Spec.Resources.Requests.StorageEphemeral(); reqStorage != nil {
if reqStorage, ok := claim.Spec.Resources.Requests[v1.ResourceStorage]; ok {
if v, ok := reqStorage.AsInt64(); ok && v > 0 {
volSize = v
}
Expand Down

0 comments on commit d2fc497

Please sign in to comment.