tikvcluster

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 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"
)

Variables

This section is empty.

Functions

func GetTikvClusterCondition

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.

Jump to

Keyboard shortcuts

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