Documentation
¶
Index ¶
- func AsyncWaitPodsRollingUpdateOnce[S scope.Group[F, T], F client.Object, T runtime.Group](ctx context.Context, f *Framework, obj F, to int) chan struct{}
- func MustEvenlySpread[GS scope.GroupInstance[GF, GT, IS], IS scope.InstanceList[IF, IT, IL], ...](ctx context.Context, f *Framework, g GF)
- func NewConfig(configPath, ctxName string) (*rest.Config, error)
- func WaitForGroupSynced[S scope.Group[F, T], F client.Object, T runtime.Group](ctx context.Context, f *Framework, g F)
- func WaitForInstanceListSynced[GS scope.GroupInstance[GF, GT, IS], IS scope.InstanceList[IF, IT, IL], ...](ctx context.Context, f *Framework, g GF)
- type CertManager
- type Framework
- func (*Framework) DescribeFeatureTable(f func(fs ...metav1alpha1.Feature), fss ...[]metav1alpha1.Feature)
- func (*Framework) Must(err error)
- func (f *Framework) MustCreateCluster(ctx context.Context, ps ...data.ClusterPatch) *v1alpha1.Cluster
- func (f *Framework) MustCreatePD(ctx context.Context, ps ...data.GroupPatch[*v1alpha1.PDGroup]) *v1alpha1.PDGroup
- func (f *Framework) MustCreateS3(ctx context.Context)
- func (f *Framework) MustCreateScheduling(ctx context.Context, ps ...data.GroupPatch[*v1alpha1.SchedulingGroup]) *v1alpha1.SchedulingGroup
- func (f *Framework) MustCreateTSO(ctx context.Context, ps ...data.GroupPatch[*v1alpha1.TSOGroup]) *v1alpha1.TSOGroup
- func (f *Framework) MustCreateTiCDC(ctx context.Context, ps ...data.GroupPatch[*v1alpha1.TiCDCGroup]) *v1alpha1.TiCDCGroup
- func (f *Framework) MustCreateTiDB(ctx context.Context, ps ...data.GroupPatch[*v1alpha1.TiDBGroup]) *v1alpha1.TiDBGroup
- func (f *Framework) MustCreateTiFlash(ctx context.Context, ps ...data.GroupPatch[*v1alpha1.TiFlashGroup]) *v1alpha1.TiFlashGroup
- func (f *Framework) MustCreateTiKV(ctx context.Context, ps ...data.GroupPatch[*v1alpha1.TiKVGroup]) *v1alpha1.TiKVGroup
- func (f *Framework) MustCreateTiProxy(ctx context.Context, ps ...data.GroupPatch[*v1alpha1.TiProxyGroup]) *v1alpha1.TiProxyGroup
- func (f *Framework) PortForwardPod(ctx context.Context, pod *corev1.Pod, ports []string) []portforward.ForwardedPort
- func (f *Framework) RestartTiCDCPod(ctx context.Context, cdc *v1alpha1.TiCDC)
- func (f *Framework) RestartTiKVPod(ctx context.Context, kv *v1alpha1.TiKV)
- func (f *Framework) Setup(opts ...SetupOption)
- func (f *Framework) SetupBootstrapSQL(sql string)
- func (f *Framework) SetupCertManager() *CertManager
- func (f *Framework) SetupCluster(ps ...data.ClusterPatch)
- func (f *Framework) SetupWorkload() *Workload
- func (*Framework) True(b bool, opts ...any)
- func (f *Framework) WaitForAllReady(ctx context.Context, cn string)
- func (f *Framework) WaitForPDGroupReady(ctx context.Context, pdg *v1alpha1.PDGroup)
- func (f *Framework) WaitForPDGroupReadyAndNotSuspended(ctx context.Context, pdg *v1alpha1.PDGroup)
- func (f *Framework) WaitForPDGroupSuspended(ctx context.Context, pdg *v1alpha1.PDGroup)
- func (f *Framework) WaitForSchedulingGroupReady(ctx context.Context, sg *v1alpha1.SchedulingGroup)
- func (f *Framework) WaitForTSOGroupReady(ctx context.Context, tg *v1alpha1.TSOGroup)
- func (f *Framework) WaitForTiCDCGroupReady(ctx context.Context, cg *v1alpha1.TiCDCGroup)
- func (f *Framework) WaitForTiDBGroupReady(ctx context.Context, dbg *v1alpha1.TiDBGroup)
- func (f *Framework) WaitForTiFlashGroupReady(ctx context.Context, fg *v1alpha1.TiFlashGroup)
- func (f *Framework) WaitForTiKVGroupReady(ctx context.Context, kvg *v1alpha1.TiKVGroup)
- func (f *Framework) WaitForTiProxyGroupReady(ctx context.Context, pg *v1alpha1.TiProxyGroup)
- func (f *Framework) WaitTiCDCPreStopHookSuccess(ctx context.Context, cdc *v1alpha1.TiCDC)
- func (f *Framework) WaitTiKVPreStopHookSuccess(ctx context.Context, kv *v1alpha1.TiKV)
- type SetupOption
- type SetupOptions
- type Workload
- func (w *Workload) DeferPrintLogs()
- func (w *Workload) MustImportData(ctx context.Context, host string, opts ...workload.Option)
- func (w *Workload) MustPing(ctx context.Context, host string, opts ...workload.Option)
- func (w *Workload) MustRunPDRegionAccess(ctx context.Context, pdEndpoints string, opts ...workload.Option) (done chan struct{})
- func (w *Workload) MustRunWorkload(ctx context.Context, host string, opts ...workload.Option) (done chan struct{})
- func (w *Workload) StopJob(ctx context.Context, job *batchv1.Job) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustEvenlySpread ¶
func WaitForGroupSynced ¶
func WaitForInstanceListSynced ¶
func WaitForInstanceListSynced[ 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, f *Framework, g GF, )
WaitForInstanceListSynced waits until all instances being created and all subresources of instances being created. It's usefull to wait until all unschedulable pods being created.
Types ¶
type CertManager ¶
type CertManager struct {
// contains filtered or unexported fields
}
type Framework ¶
type Framework struct {
Namespace *corev1.Namespace
Cluster *v1alpha1.Cluster
Client client.Client
// contains filtered or unexported fields
}
func (*Framework) DescribeFeatureTable ¶
func (*Framework) DescribeFeatureTable(f func(fs ...metav1alpha1.Feature), fss ...[]metav1alpha1.Feature)
DescribeFeatureTable generates a case with different features
func (*Framework) MustCreateCluster ¶
func (*Framework) MustCreatePD ¶
func (*Framework) MustCreateS3 ¶
func (*Framework) MustCreateScheduling ¶
func (f *Framework) MustCreateScheduling(ctx context.Context, ps ...data.GroupPatch[*v1alpha1.SchedulingGroup]) *v1alpha1.SchedulingGroup
func (*Framework) MustCreateTSO ¶
func (*Framework) MustCreateTiCDC ¶
func (f *Framework) MustCreateTiCDC(ctx context.Context, ps ...data.GroupPatch[*v1alpha1.TiCDCGroup]) *v1alpha1.TiCDCGroup
func (*Framework) MustCreateTiDB ¶
func (*Framework) MustCreateTiFlash ¶
func (f *Framework) MustCreateTiFlash(ctx context.Context, ps ...data.GroupPatch[*v1alpha1.TiFlashGroup]) *v1alpha1.TiFlashGroup
func (*Framework) MustCreateTiKV ¶
func (*Framework) MustCreateTiProxy ¶
func (f *Framework) MustCreateTiProxy(ctx context.Context, ps ...data.GroupPatch[*v1alpha1.TiProxyGroup]) *v1alpha1.TiProxyGroup
func (*Framework) PortForwardPod ¶
func (f *Framework) PortForwardPod(ctx context.Context, pod *corev1.Pod, ports []string) []portforward.ForwardedPort
func (*Framework) RestartTiCDCPod ¶
func (*Framework) RestartTiKVPod ¶
func (*Framework) Setup ¶
func (f *Framework) Setup(opts ...SetupOption)
func (*Framework) SetupBootstrapSQL ¶
func (*Framework) SetupCertManager ¶
func (f *Framework) SetupCertManager() *CertManager
func (*Framework) SetupCluster ¶
func (f *Framework) SetupCluster(ps ...data.ClusterPatch)
func (*Framework) SetupWorkload ¶
func (*Framework) WaitForAllReady ¶
func (*Framework) WaitForPDGroupReady ¶
func (*Framework) WaitForPDGroupReadyAndNotSuspended ¶
func (*Framework) WaitForPDGroupSuspended ¶
func (*Framework) WaitForSchedulingGroupReady ¶
func (f *Framework) WaitForSchedulingGroupReady(ctx context.Context, sg *v1alpha1.SchedulingGroup)
func (*Framework) WaitForTSOGroupReady ¶
func (*Framework) WaitForTiCDCGroupReady ¶
func (f *Framework) WaitForTiCDCGroupReady(ctx context.Context, cg *v1alpha1.TiCDCGroup)
func (*Framework) WaitForTiDBGroupReady ¶
func (*Framework) WaitForTiFlashGroupReady ¶
func (f *Framework) WaitForTiFlashGroupReady(ctx context.Context, fg *v1alpha1.TiFlashGroup)
func (*Framework) WaitForTiKVGroupReady ¶
func (*Framework) WaitForTiProxyGroupReady ¶
func (f *Framework) WaitForTiProxyGroupReady(ctx context.Context, pg *v1alpha1.TiProxyGroup)
func (*Framework) WaitTiCDCPreStopHookSuccess ¶
type SetupOption ¶
type SetupOption func(opts *SetupOptions)
func WithSkipClusterCreation ¶
func WithSkipClusterCreation() SetupOption
func WithSkipClusterDeletionWhenFailed ¶
func WithSkipClusterDeletionWhenFailed() SetupOption
func WithSkipWaitForClusterDeleted ¶
func WithSkipWaitForClusterDeleted() SetupOption
func WithSkipWaitForNamespaceDeleted ¶
func WithSkipWaitForNamespaceDeleted() SetupOption
type SetupOptions ¶
type Workload ¶
type Workload struct {
// contains filtered or unexported fields
}
func (*Workload) DeferPrintLogs ¶
func (w *Workload) DeferPrintLogs()
func (*Workload) MustImportData ¶
func (*Workload) MustRunPDRegionAccess ¶
func (*Workload) MustRunWorkload ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.