tidbcluster

package
v1.5.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckComponentStatusNotChanged added in v1.4.0

func CheckComponentStatusNotChanged(c versioned.Interface, oldTC *v1alpha1.TidbCluster) error

func IsTidbClusterAvailable added in v1.3.0

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

IsTidbClusterAvailable 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 MustPDHasScheduler added in v1.3.0

func MustPDHasScheduler(pdSchedulers []string, scheduler string) bool

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)

MustWaitForComponentPhase wait a component to be in a specific phase

func WaitForComponentPhase added in v1.3.3

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

func WaitForTCCondition added in v1.3.3

func WaitForTCCondition(c versioned.Interface, tcNS string, tcName string, timeout, pollInterval time.Duration, condition TCCondition) error

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

If tc is not found, break the poll and return error

func WaitForTCConditionReady added in v1.3.3

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

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

Types

type TCCondition added in v1.3.3

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

Jump to

Keyboard shortcuts

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