From d2fc497d07e9f9d4eecbce51153e2d496c2c47f4 Mon Sep 17 00:00:00 2001 From: lamai93 Date: Fri, 14 Dec 2018 21:27:07 +0100 Subject: [PATCH] Show the correct volume size for volumes provided by the storage operator. --- pkg/storage/pv_creator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/storage/pv_creator.go b/pkg/storage/pv_creator.go index e3fa2cc80..c8ac17e34 100644 --- a/pkg/storage/pv_creator.go +++ b/pkg/storage/pv_creator.go @@ -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 }