From a0a2711a301822db9751460017fecee4e4132f57 Mon Sep 17 00:00:00 2001 From: Ashutosh Kumar Date: Thu, 23 Jan 2020 23:10:25 +0530 Subject: [PATCH] fix(overprovisioning): fix overprovisioning bug This commit fixes a bug that was not allowing the clone volumes to get created if overprovisioning was disabled. Signed-off-by: Ashutosh Kumar --- pkg/install/v1alpha1/cstor_volume.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/install/v1alpha1/cstor_volume.go b/pkg/install/v1alpha1/cstor_volume.go index 8bd1912774..3b77ee3af6 100644 --- a/pkg/install/v1alpha1/cstor_volume.go +++ b/pkg/install/v1alpha1/cstor_volume.go @@ -262,9 +262,9 @@ spec: {{- $poolsList | keyMap "cvolPoolList" .ListItems | noop -}} {{- $poolsNodeList := jsonpath .JsonResult "{range .items[*]}pkey=pools,{@.metadata.uid}={@.metadata.labels.kubernetes\\.io/hostname};{end}" | trim | default "" | splitList ";" -}} {{- $poolsNodeList | keyMap "cvolPoolNodeList" .ListItems | noop -}} + {{- end }} {{- $poolsCapList := jsonpath .JsonResult "{range .items[*]}pkey=poolsCapacity,{@.metadata.uid}={@.status.capacity.total};{end}" | trim | default "" | splitList ";" -}} {{- $poolsCapList | keyMap "cvolPoolCapList" .ListItems | noop -}} - {{- end }} --- #runTask to get storageclass info apiVersion: openebs.io/v1alpha1