Skip to content

Commit

Permalink
chore(cspc): update cspc api (openebs-archive#35)
Browse files Browse the repository at this point in the history
This commit does following :
1. Changes 'ThickProvisioning' field to 'ThickProvision'.
2. Add 'PoolManagerAvailable' condition type in cspc

Signed-off-by: Ashutosh Kumar <ashutosh.kumar@mayadata.io>
  • Loading branch information
Ashutosh Kumar authored Apr 4, 2020
1 parent e8c97f1 commit 7c22996
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
11 changes: 9 additions & 2 deletions pkg/apis/cstor/v1/cstorpoolcluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ type PoolConfig struct {
// WriteCacheGroupType is the write cache raid type.
WriteCacheGroupType string `json:"writeCacheGroupType"`

// ThickProvisioning to enable thick provisioning
// ThickProvision to enable thick provisioning
// Optional -- defaults to false
ThickProvisioning bool `json:"thickProvisioning"`
ThickProvision bool `json:"thickProvision"`
// Compression to enable compression
// Optional -- defaults to off
// Possible values : lz, off
Expand Down Expand Up @@ -165,6 +165,13 @@ type CStorPoolClusterStatus struct {

type CSPCConditionType string

// These are valid conditions of a cspc.
const (
// PoolManagerAvailable means the PoolManagerAvailable deployment is available, ie. at least the minimum available
// replicas required are up and running and in ready state.
PoolManagerAvailable CSPCConditionType = "PoolManagerAvailable"
)

// CStorPoolClusterCondition describes the state of a CSPC at a certain point.
type CStorPoolClusterCondition struct {
// Type of CSPC condition.
Expand Down
11 changes: 9 additions & 2 deletions pkg/internalapis/apis/cstor/cstorpoolcluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ type PoolConfig struct {
// WriteCacheGroupType is the write cache raid type.
WriteCacheGroupType string `json:"writeCacheGroupType"`

// ThickProvisioning to enable thick provisioning
// ThickProvision to enable thick provisioning
// Optional -- defaults to false
ThickProvisioning bool `json:"thickProvisioning"`
ThickProvision bool `json:"thickProvision"`
// Compression to enable compression
// Optional -- defaults to off
// Possible values : lz, off
Expand Down Expand Up @@ -165,6 +165,13 @@ type CStorPoolClusterStatus struct {

type CSPCConditionType string

// These are valid conditions of a cspc.
const (
// PoolManagerAvailable means the PoolManagerAvailable deployment is available, ie. at least the minimum available
// replicas required are up and running and in ready state.
PoolManagerAvailable CSPCConditionType = "PoolManagerAvailable"
)

// CStorPoolClusterCondition describes the state of a CSPC at a certain point.
type CStorPoolClusterCondition struct {
// Type of CSPC condition.
Expand Down
4 changes: 2 additions & 2 deletions pkg/internalapis/apis/cstor/v1/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7c22996

Please sign in to comment.