Documentation ¶
Index ¶
- func IsTidbClusterAvaiable(tc *v1alpha1.TidbCluster, minReadyDuration time.Duration, now time.Time) bool
- func IsTidbClusterReady(tc *v1alpha1.TidbCluster) bool
- func MustCreateTCWithComponentsReady(cli ctrlCli.Client, oa *tests.OperatorActions, tc *v1alpha1.TidbCluster, ...)
- func MustWaitForComponentPhase(c versioned.Interface, tc *v1alpha1.TidbCluster, comp v1alpha1.MemberType, ...)
- func MustWaitForPDPhase(c versioned.Interface, tc *v1alpha1.TidbCluster, phase v1alpha1.MemberPhase, ...)
- func MustWaitForTiDBPhase(c versioned.Interface, tc *v1alpha1.TidbCluster, phase v1alpha1.MemberPhase, ...)
- func MustWaitForTiKVPhase(c versioned.Interface, tc *v1alpha1.TidbCluster, phase v1alpha1.MemberPhase, ...)
- func WaitForTidbClusterCondition(c versioned.Interface, ns, name string, timeout time.Duration, ...) error
- func WaitForTidbClusterConditionReady(c versioned.Interface, ns, name string, timeout time.Duration, ...) error
- type TidbClusterCondition
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)
Click to show internal directories.
Click to hide internal directories.