tidbcluster

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTidbClusterAvaiable

func IsTidbClusterAvaiable(tc *v1alpha1.TidbCluster, minReadyDuration time.Duration, now time.Time) bool

IsTidbClusterAvaiable returns true if a tidbcluster is ready for at least minReadyDuration duration; false otherwise.

func IsTidbClusterReady

func IsTidbClusterReady(tc *v1alpha1.TidbCluster) bool

IsTidbClusterReady returns true if a tidbcluster is ready; false otherwise.

func MustCreateTCWithComponentsReady added in v1.2.0

func MustCreateTCWithComponentsReady(cli ctrlCli.Client, oa *tests.OperatorActions, tc *v1alpha1.TidbCluster, timeout, pollInterval time.Duration)

MustCreateTCWithComponentsReady create TidbCluster and wait for components ready

func MustWaitForComponentPhase added in v1.2.0

func MustWaitForComponentPhase(c versioned.Interface, tc *v1alpha1.TidbCluster, comp v1alpha1.MemberType, phase v1alpha1.MemberPhase, timeout, pollInterval time.Duration)

func MustWaitForPDPhase added in v1.2.0

func MustWaitForPDPhase(c versioned.Interface, tc *v1alpha1.TidbCluster, phase v1alpha1.MemberPhase, timeout, pollInterval time.Duration)

func MustWaitForTiDBPhase added in v1.2.0

func MustWaitForTiDBPhase(c versioned.Interface, tc *v1alpha1.TidbCluster, phase v1alpha1.MemberPhase, timeout, pollInterval time.Duration)

func MustWaitForTiKVPhase added in v1.2.0

func MustWaitForTiKVPhase(c versioned.Interface, tc *v1alpha1.TidbCluster, phase v1alpha1.MemberPhase, timeout, pollInterval time.Duration)

func WaitForTidbClusterCondition

func WaitForTidbClusterCondition(c versioned.Interface, ns, name string, timeout time.Duration, condition TidbClusterCondition) error

WaitForTidbClusterCondition waits for a TidbCluster to be matched to the given condition.

func WaitForTidbClusterConditionReady added in v1.2.0

func WaitForTidbClusterConditionReady(c versioned.Interface, ns, name string, timeout time.Duration, minReadyDuration time.Duration) error

WaitForTidbClusterConditionReady waits for a TidbClusterCondition to be ready for at least minReadyDuration duration.

Types

type TidbClusterCondition

type TidbClusterCondition func(tc *v1alpha1.TidbCluster) (bool, error)

Jump to

Keyboard shortcuts

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