Documentation ¶
Index ¶
- func CheckComponentStatusNotChanged(c versioned.Interface, oldTC *v1alpha1.TidbCluster) error
- func IsTidbClusterAvailable(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 MustPDHasScheduler(pdSchedulers []string, scheduler string) bool
- func MustWaitForComponentPhase(c versioned.Interface, tc *v1alpha1.TidbCluster, comp v1alpha1.MemberType, ...)
- func WaitForComponentPhase(c versioned.Interface, tc *v1alpha1.TidbCluster, comp v1alpha1.MemberType, ...) (v1alpha1.MemberPhase, error)
- func WaitForTCCondition(c versioned.Interface, tcNS string, tcName string, ...) error
- func WaitForTCConditionReady(c versioned.Interface, ns, name string, timeout time.Duration, ...) error
- type TCCondition
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 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
Types ¶
type TCCondition ¶ added in v1.3.3
type TCCondition func(tc *v1alpha1.TidbCluster) (bool, error)
Click to show internal directories.
Click to hide internal directories.