From a64efd7d3ba603a45b25e206c3a8f555a1b74957 Mon Sep 17 00:00:00 2001 From: mayank Date: Mon, 2 Mar 2020 12:01:14 +0530 Subject: [PATCH] Setting default poolROThreshold to 85 for CSP Signed-off-by: mayank --- cmd/maya-apiserver/cstor-operator/spc/storagepool_create.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/maya-apiserver/cstor-operator/spc/storagepool_create.go b/cmd/maya-apiserver/cstor-operator/spc/storagepool_create.go index 1658a22120..499cc89207 100644 --- a/cmd/maya-apiserver/cstor-operator/spc/storagepool_create.go +++ b/cmd/maya-apiserver/cstor-operator/spc/storagepool_create.go @@ -137,6 +137,9 @@ func (cb *CasPoolBuilder) withAnnotations(annotations map[string]string) *CasPoo // WithPoolROThreshold set PoolROThreshold value func (cb *CasPoolBuilder) WithPoolROThreshold(poolROThreshold int) *CasPoolBuilder { + if poolROThreshold == 0 { + poolROThreshold = 85 + } cb.CasPool.PoolROThreshold = poolROThreshold return cb }