Skip to content

Commit

Permalink
feat(csp, poolROThreshold): setting default poolROThreshold to 85 for…
Browse files Browse the repository at this point in the history
… CSP (#1623)

Signed-off-by: mayank <[email protected]>
  • Loading branch information
mynktl authored Mar 2, 2020
1 parent 6daf5f0 commit f2870bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/maya-apiserver/cstor-operator/spc/storagepool_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit f2870bb

Please sign in to comment.