tidbcluster

package
v1.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL