Documentation ¶
Index ¶
- Constants
- func GetDMClusterCondition(status v1alpha1.DMClusterStatus, condType v1alpha1.DMClusterConditionType) *v1alpha1.DMClusterCondition
- func GetDMClusterReadyCondition(status v1alpha1.DMClusterStatus) *v1alpha1.DMClusterCondition
- func NewDMClusterCondition(condType v1alpha1.DMClusterConditionType, status v1.ConditionStatus, ...) *v1alpha1.DMClusterCondition
- func SetDMClusterCondition(status *v1alpha1.DMClusterStatus, condition v1alpha1.DMClusterCondition)
Constants ¶
View Source
const ( // Ready Ready = "Ready" // StatefulSetNotUpToDate is added when one of statefulsets is not up to date. StatfulSetNotUpToDate = "StatefulSetNotUpToDate" // MasterUnhealthy is added when one of dm-master members is unhealthy. MasterUnhealthy = "DMMasterUnhealthy" )
Variables ¶
This section is empty.
Functions ¶
func GetDMClusterCondition ¶
func GetDMClusterCondition(status v1alpha1.DMClusterStatus, condType v1alpha1.DMClusterConditionType) *v1alpha1.DMClusterCondition
GetDMClusterCondition returns the condition with the provided type.
func GetDMClusterReadyCondition ¶
func GetDMClusterReadyCondition(status v1alpha1.DMClusterStatus) *v1alpha1.DMClusterCondition
GetDMClusterReadyCondition extracts the dmcluster ready condition from the given status and returns that. Returns nil if the condition is not present.
func NewDMClusterCondition ¶
func NewDMClusterCondition(condType v1alpha1.DMClusterConditionType, status v1.ConditionStatus, reason, message string) *v1alpha1.DMClusterCondition
NewDMClusterCondition creates a new dmcluster condition.
func SetDMClusterCondition ¶
func SetDMClusterCondition(status *v1alpha1.DMClusterStatus, condition v1alpha1.DMClusterCondition)
SetDMClusterCondition updates the dm cluster 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.