diff --git a/design/cstor/v1/cstorpool.md b/design/cstor/v1/cstorpool.md index 5ed6d974..7843e1bd 100644 --- a/design/cstor/v1/cstorpool.md +++ b/design/cstor/v1/cstorpool.md @@ -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. diff --git a/pkg/apis/cstor/v1/cstorpoolinstance.go b/pkg/apis/cstor/v1/cstorpoolinstance.go index cbabe611..77983e67 100644 --- a/pkg/apis/cstor/v1/cstorpoolinstance.go +++ b/pkg/apis/cstor/v1/cstorpoolinstance.go @@ -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. diff --git a/pkg/internalapis/apis/cstor/cstorpoolinstance.go b/pkg/internalapis/apis/cstor/cstorpoolinstance.go index 24943fbd..195c9b04 100644 --- a/pkg/internalapis/apis/cstor/cstorpoolinstance.go +++ b/pkg/internalapis/apis/cstor/cstorpoolinstance.go @@ -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. diff --git a/pkg/internalapis/apis/cstor/v1/zz_generated.conversion.go b/pkg/internalapis/apis/cstor/v1/zz_generated.conversion.go index 508ffd21..1c1747ec 100644 --- a/pkg/internalapis/apis/cstor/v1/zz_generated.conversion.go +++ b/pkg/internalapis/apis/cstor/v1/zz_generated.conversion.go @@ -847,6 +847,8 @@ func autoConvert_v1_CStorPoolInstanceStatus_To_cstor_CStorPoolInstanceStatus(in return err } out.ReadOnly = in.ReadOnly + out.ProvisionedReplicas = in.ProvisionedReplicas + out.HealthyReplicas = in.HealthyReplicas return nil } @@ -862,6 +864,8 @@ func autoConvert_cstor_CStorPoolInstanceStatus_To_v1_CStorPoolInstanceStatus(in return err } out.ReadOnly = in.ReadOnly + out.ProvisionedReplicas = in.ProvisionedReplicas + out.HealthyReplicas = in.HealthyReplicas return nil }