Documentation ¶
Index ¶
- Constants
- func GetCSPCCondition(status cstor.CStorPoolClusterStatus, condType cstor.CSPCConditionType) *cstor.CStorPoolClusterCondition
- func NewCSPCCondition(condType cstor.CSPCConditionType, status corev1.ConditionStatus, ...) *cstor.CStorPoolClusterCondition
- func RemoveCSPCCondition(status *cstor.CStorPoolClusterStatus, condType cstor.CSPCConditionType)
- func SetCSPCCondition(status *cstor.CStorPoolClusterStatus, ...)
Constants ¶
View Source
const ( // PoolManagersAvailable is added in a cspc when it has its minimum pool-managers required available. MinimumPoolManagersAvailable = "MinimumPoolManagersAvailable" // MinimumPoolManagersUnAvailable is added in a cspc when it doesn't have the minimum required pool-managers // available. MinimumPoolManagersUnAvailable = "MinimumPoolManagersUnAvailable" )
View Source
const ( // PoolManagerAvailable is PoolManagerAvailable cstor.CSPCConditionType = "PoolManagerAvailable" )
Variables ¶
This section is empty.
Functions ¶
func GetCSPCCondition ¶
func GetCSPCCondition(status cstor.CStorPoolClusterStatus, condType cstor.CSPCConditionType) *cstor.CStorPoolClusterCondition
GetCSPCCondition returns the condition with the provided type.
func NewCSPCCondition ¶
func NewCSPCCondition(condType cstor.CSPCConditionType, status corev1.ConditionStatus, reason, message string) *cstor.CStorPoolClusterCondition
NewCSPCCondition creates a new cspc condition.
func RemoveCSPCCondition ¶
func RemoveCSPCCondition(status *cstor.CStorPoolClusterStatus, condType cstor.CSPCConditionType)
RemoveCSPCCondition removes the cspc condition with the provided type.
func SetCSPCCondition ¶
func SetCSPCCondition(status *cstor.CStorPoolClusterStatus, condition cstor.CStorPoolClusterCondition)
SetCSPCCondition updates the cspc to include the provided condition. If the condition that we are about to add already exists and has the same status and reason then we are not going to update.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.