Documentation
¶
Index ¶
- Constants
- func GetTikvClusterCondition(status v1alpha1.TikvClusterStatus, condType v1alpha1.TikvClusterConditionType) *v1alpha1.TikvClusterCondition
- func GetTikvClusterReadyCondition(status v1alpha1.TikvClusterStatus) *v1alpha1.TikvClusterCondition
- func NewTikvClusterCondition(condType v1alpha1.TikvClusterConditionType, status v1.ConditionStatus, ...) *v1alpha1.TikvClusterCondition
- func SetTikvClusterCondition(status *v1alpha1.TikvClusterStatus, condition v1alpha1.TikvClusterCondition)
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" )
Variables ¶
This section is empty.
Functions ¶
func GetTikvClusterCondition ¶
func GetTikvClusterCondition(status v1alpha1.TikvClusterStatus, condType v1alpha1.TikvClusterConditionType) *v1alpha1.TikvClusterCondition
GetTikvClusterCondition returns the condition with the provided type.
func GetTikvClusterReadyCondition ¶
func GetTikvClusterReadyCondition(status v1alpha1.TikvClusterStatus) *v1alpha1.TikvClusterCondition
GetTikvClusterReadyCondition extracts the tikvcluster ready condition from the given status and returns that. Returns nil if the condition is not present.
func NewTikvClusterCondition ¶
func NewTikvClusterCondition(condType v1alpha1.TikvClusterConditionType, status v1.ConditionStatus, reason, message string) *v1alpha1.TikvClusterCondition
NewTikvClusterCondition creates a new tikvcluster condition.
func SetTikvClusterCondition ¶
func SetTikvClusterCondition(status *v1alpha1.TikvClusterStatus, condition v1alpha1.TikvClusterCondition)
SetTikvClusterCondition updates the tikv 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.