From 8dd2c08bb6ec8c794a86cc1aca464611451574c5 Mon Sep 17 00:00:00 2001 From: Adam Drew Date: Fri, 6 May 2022 12:31:34 -0400 Subject: [PATCH] Size v capacity in utils --- controllers/cloud.redhat.com/utils/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/cloud.redhat.com/utils/utils.go b/controllers/cloud.redhat.com/utils/utils.go index 1c15ff1c4..847379685 100644 --- a/controllers/cloud.redhat.com/utils/utils.go +++ b/controllers/cloud.redhat.com/utils/utils.go @@ -253,13 +253,13 @@ func MakeService(service *core.Service, nn types.NamespacedName, labels map[stri } // MakePVC takes a PVC object and applies the correct ownership and labels to it. -func MakePVC(pvc *core.PersistentVolumeClaim, nn types.NamespacedName, labels map[string]string, size string, baseResource obj.ClowdObject) { +func MakePVC(pvc *core.PersistentVolumeClaim, nn types.NamespacedName, labels map[string]string, capacity string, baseResource obj.ClowdObject) { labeler := GetCustomLabeler(labels, nn, baseResource) labeler(pvc) pvc.Spec.AccessModes = []core.PersistentVolumeAccessMode{core.ReadWriteOnce} pvc.Spec.Resources = core.ResourceRequirements{ Requests: core.ResourceList{ - core.ResourceName(core.ResourceStorage): resource.MustParse(size), + core.ResourceName(core.ResourceStorage): resource.MustParse(capacity), }, } }