Documentation
¶
Index ¶
- Variables
- func EvictLeaderBeforeStoreIsRemoving(deleting int) func(kv *v1alpha1.TiKV) (bool, error)
- func ListCondition[S scope.Instance[F, T], F client.Object, T runtime.Instance](condType string, status metav1.ConditionStatus) func(items []F) error
- func ListIsEmpty[I client.Object](items []I) error
- func ListIsRecreated[I client.Object](changeTime time.Time) func(items []I) error
- func MaxPodsCreateTimestamp[S scope.Group[F, T], F client.Object, T runtime.Group](ctx context.Context, c client.Client, g F) (*time.Time, error)
- func OneDeleting[I client.Object](target *I) func(items []I) error
- func PDHasLeader(items []*v1alpha1.PD) error
- func WaitForClusterPDRegistered(ctx context.Context, c client.Client, tc *v1alpha1.Cluster, ...) error
- func WaitForClusterReady(ctx context.Context, c client.Client, ns, name string, timeout time.Duration) error
- func WaitForInstance[S scope.Instance[F, T], F client.Object, T runtime.Instance](ctx context.Context, c client.Client, instance F, cond func(instance F) error, ...) error
- func WaitForInstanceList[GS scope.GroupInstance[GF, GT, IS], IS scope.List[IL, I], GF client.Object, ...](ctx context.Context, c client.Client, g GF, cond func(items []I) error, ...) error
- func WaitForInstanceListCondition[GS scope.GroupInstance[GF, GT, IS], IS scope.InstanceList[IF, IT, IL], ...](ctx context.Context, c client.Client, g GF, condType string, ...) error
- func WaitForInstanceListDeleted[GS scope.GroupInstance[GF, GT, IS], IS scope.List[IL, I], GF client.Object, ...](ctx context.Context, c client.Client, g GF, timeout time.Duration) error
- func WaitForInstanceListRecreated[GS scope.GroupInstance[GF, GT, IS], IS scope.List[IL, I], GF client.Object, ...](ctx context.Context, c client.Client, g GF, changeTime time.Time, ...) error
- func WaitForJobComplete(ctx context.Context, c client.Client, job *batchv1.Job, timeout time.Duration) error
- func WaitForJobRunning(ctx context.Context, c client.Client, job *batchv1.Job, timeout time.Duration) error
- func WaitForList(ctx context.Context, c client.Client, list client.ObjectList, ...) error
- func WaitForListDeleted(ctx context.Context, c client.Client, list client.ObjectList, ...) error
- func WaitForObject(ctx context.Context, c client.Client, obj client.Object, cond func() error, ...) error
- func WaitForObjectCondition[S scope.Object[F, T], F client.Object, T runtime.Object](ctx context.Context, c client.Client, obj F, condType string, ...) error
- func WaitForObjectDeleted(ctx context.Context, c client.Client, obj client.Object, timeout time.Duration) error
- func WaitForObjectV2(ctx context.Context, c client.Client, obj client.Object, ...) error
- func WaitForOneInstanceDeleting[GS scope.GroupInstance[GF, GT, IS], IS scope.List[IL, I], GF client.Object, ...](ctx context.Context, c client.Client, g GF, target *I, timeout time.Duration) error
- func WaitForPDsHealthy(ctx context.Context, c client.Client, pdg *v1alpha1.PDGroup, ...) error
- func WaitForPodReadyInNamespace(ctx context.Context, c client.Client, pod *corev1.Pod, timeout time.Duration) error
- func WaitForPodsCondition[G runtime.Group](ctx context.Context, c client.Client, g G, cond func(pod *corev1.Pod) error, ...) error
- func WaitForPodsReady[G runtime.Group](ctx context.Context, c client.Client, g G, timeout time.Duration) error
- func WaitForPodsRecreated[G runtime.Group](ctx context.Context, c client.Client, g G, changeTime time.Time, ...) error
- func WaitForResourceManagersHealthy(ctx context.Context, c client.Client, rmg *v1alpha1.ResourceManagerGroup, ...) error
- func WaitForRoutersHealthy(ctx context.Context, c client.Client, rg *v1alpha1.RouterGroup, ...) error
- func WaitForSchedulingsHealthy(ctx context.Context, c client.Client, sg *v1alpha1.SchedulingGroup, ...) error
- func WaitForTSOsHealthy(ctx context.Context, c client.Client, tg *v1alpha1.TSOGroup, ...) error
- func WaitForTiCDCsHealthy(ctx context.Context, c client.Client, cg *v1alpha1.TiCDCGroup, ...) error
- func WaitForTiDBsHealthy(ctx context.Context, c client.Client, dbg *v1alpha1.TiDBGroup, ...) error
- func WaitForTiFlashOfflineCompleted(expectTiFlash *v1alpha1.TiFlash) func(flash *v1alpha1.TiFlash) (bool, error)
- func WaitForTiFlashesHealthy(ctx context.Context, c client.Client, fg *v1alpha1.TiFlashGroup, ...) error
- func WaitForTiKVOfflineCompleted(expectTiKV *v1alpha1.TiKV) func(kv *v1alpha1.TiKV) (bool, error)
- func WaitForTiKVWorkersHealthy(ctx context.Context, c client.Client, wg *v1alpha1.TiKVWorkerGroup, ...) error
- func WaitForTiKVsHealthy(ctx context.Context, c client.Client, kvg *v1alpha1.TiKVGroup, ...) error
- func WaitForTiProxysHealthy(ctx context.Context, c client.Client, proxyg *v1alpha1.TiProxyGroup, ...) error
- func WaitPodsRollingUpdateOnce[S scope.Group[F, T], F client.Object, T runtime.Group](ctx context.Context, c client.Client, g F, to int, surge int, ...) error
- func WatchUntilInstanceList[GS scope.GroupInstance[GF, GT, IS], IS scope.List[IL, PI], GF client.Object, ...](ctx context.Context, c client.Client, g GF, cond func(item PI) (bool, error), ...) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ListCondition ¶
func ListIsEmpty ¶
func ListIsRecreated ¶
func MaxPodsCreateTimestamp ¶
func OneDeleting ¶
func PDHasLeader ¶
func WaitForClusterReady ¶
func WaitForInstance ¶
func WaitForInstanceList ¶
func WaitForInstanceListCondition ¶
func WaitForInstanceListCondition[ GS scope.GroupInstance[GF, GT, IS], IS scope.InstanceList[IF, IT, IL], GF client.Object, GT runtime.Group, IF client.Object, IT runtime.Instance, IL client.ObjectList, ]( ctx context.Context, c client.Client, g GF, condType string, status metav1.ConditionStatus, timeout time.Duration, ) error
func WaitForJobComplete ¶
func WaitForJobRunning ¶
func WaitForList ¶
func WaitForListDeleted ¶
func WaitForObject ¶
func WaitForObjectCondition ¶
func WaitForObjectDeleted ¶
func WaitForObjectV2 ¶
func WaitForPDsHealthy ¶
func WaitForPodReadyInNamespace ¶
func WaitForPodReadyInNamespace(ctx context.Context, c client.Client, pod *corev1.Pod, timeout time.Duration) error
WaitForPodReadyInNamespace waits the given timeout duration for the specified pod to be ready and running.
func WaitForPodsCondition ¶
func WaitForPodsReady ¶
func WaitForPodsRecreated ¶
func WaitForRoutersHealthy ¶
func WaitForTSOsHealthy ¶
func WaitForTiCDCsHealthy ¶
func WaitForTiDBsHealthy ¶
func WaitForTiFlashesHealthy ¶
func WaitForTiKVsHealthy ¶
func WaitForTiProxysHealthy ¶
func WaitPodsRollingUpdateOnce ¶
func WaitPodsRollingUpdateOnce[ S scope.Group[F, T], F client.Object, T runtime.Group, ]( ctx context.Context, c client.Client, g F, to int, surge int, timeout time.Duration, ) error
nolint: gocyclo // optimize later
func WatchUntilInstanceList ¶
func WatchUntilInstanceList[ GS scope.GroupInstance[GF, GT, IS], IS scope.List[IL, PI], GF client.Object, GT runtime.Group, IL client.ObjectList, PI scope.ClientObject[I], I any, ]( ctx context.Context, c client.Client, g GF, cond func(item PI) (bool, error), timeout time.Duration, synced chan struct{}, ) error
WatchUntilInstanceList use watch to ensure something is not happened
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.