Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cspi status): add provisioned and healthy replica count in CSPI status #54

Merged
merged 1 commit into from
Jun 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions design/cstor/v1/cstorpool.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ type CStorPoolInstanceStatus struct {
Capacity CStorPoolInstanceCapacity `json:"capacity"`
//ReadOnly if pool is readOnly or not
ReadOnly bool `json:"readOnly"`
// ProvisionedReplicas describes the total count of Volume Replicas
// present in the cstor pool
ProvisionedReplicas int32 `json:"provisionedReplicas"`
// HealthyReplicas describes the total count of healthy Volume Replicas
// in the cstor pool
HealthyReplicas int32 `json:"healthyReplicas"`
}

// CStorPoolInstanceCapacity stores the pool capacity related attributes.
Expand Down
6 changes: 6 additions & 0 deletions pkg/apis/cstor/v1/cstorpoolinstance.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ type CStorPoolInstanceStatus struct {
Capacity CStorPoolInstanceCapacity `json:"capacity"`
//ReadOnly if pool is readOnly or not
ReadOnly bool `json:"readOnly"`
// ProvisionedReplicas describes the total count of Volume Replicas
// present in the cstor pool
ProvisionedReplicas int32 `json:"provisionedReplicas"`
// HealthyReplicas describes the total count of healthy Volume Replicas
// in the cstor pool
HealthyReplicas int32 `json:"healthyReplicas"`
}

// CStorPoolInstanceCapacity stores the pool capacity related attributes.
Expand Down
6 changes: 6 additions & 0 deletions pkg/internalapis/apis/cstor/cstorpoolinstance.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ type CStorPoolInstanceStatus struct {
Capacity CStorPoolInstanceCapacity `json:"capacity"`
//ReadOnly if pool is readOnly or not
ReadOnly bool `json:"readOnly"`
// ProvisionedReplicas describes the total count of Volume Replicas
// present in the cstor pool
ProvisionedReplicas int32 `json:"provisionedReplicas"`
// HealthyReplicas describes the total count of healthy Volume Replicas
// in the cstor pool
HealthyReplicas int32 `json:"healthyReplicas"`
}

// CStorPoolInstanceCapacity stores the pool capacity related attributes.
Expand Down
4 changes: 4 additions & 0 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.