Documentation ¶
Index ¶
- Constants
- func GetTidbClusterCondition(status v1alpha1.TidbClusterStatus, condType v1alpha1.TidbClusterConditionType) *v1alpha1.TidbClusterCondition
- func GetTidbClusterReadyCondition(status v1alpha1.TidbClusterStatus) *v1alpha1.TidbClusterCondition
- func NewTidbClusterCondition(condType v1alpha1.TidbClusterConditionType, status v1.ConditionStatus, ...) *v1alpha1.TidbClusterCondition
- func SetTidbClusterCondition(status *v1alpha1.TidbClusterStatus, condition v1alpha1.TidbClusterCondition)
Constants ¶
View Source
const ( // Ready Ready = "Ready" // StatefulSetNotUpToDate is added when one of statefulsets is not up to date. StatfulSetNotUpToDate = "StatefulSetNotUpToDate" // PDUnhealthy is added when one of pd members is unhealthy. PDUnhealthy = "PDUnhealthy" // TiKVStoreNotUp is added when one of tikv stores is not up. TiKVStoreNotUp = "TiKVStoreNotUp" // TiDBUnhealthy is added when one of tidb pods is unhealthy. TiDBUnhealthy = "TiDBUnhealthy" // TiFlashStoreNotUp is added when one of tiflash stores is not up. TiFlashStoreNotUp = "TiFlashStoreNotUp" )
Variables ¶
This section is empty.
Functions ¶
func GetTidbClusterCondition ¶
func GetTidbClusterCondition(status v1alpha1.TidbClusterStatus, condType v1alpha1.TidbClusterConditionType) *v1alpha1.TidbClusterCondition
GetTidbClusterCondition returns the condition with the provided type.
func GetTidbClusterReadyCondition ¶
func GetTidbClusterReadyCondition(status v1alpha1.TidbClusterStatus) *v1alpha1.TidbClusterCondition
GetTidbClusterReadyCondition extracts the tidbcluster ready condition from the given status and returns that. Returns nil if the condition is not present.
func NewTidbClusterCondition ¶
func NewTidbClusterCondition(condType v1alpha1.TidbClusterConditionType, status v1.ConditionStatus, reason, message string) *v1alpha1.TidbClusterCondition
NewTidbClusterCondition creates a new tidbcluster condition.
func SetTidbClusterCondition ¶
func SetTidbClusterCondition(status *v1alpha1.TidbClusterStatus, condition v1alpha1.TidbClusterCondition)
SetTidbClusterCondition updates the tidb 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.