data

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

TODO: migrate to tests/e2e/data pkg

Index

Constants

View Source
const (
	Version = "v8.5.2"
	GiB     = 1024 * 1024 * 1024
)

Variables

This section is empty.

Functions

func NewCluster

func NewCluster(namespace, name string) *v1alpha1.Cluster

func NewNamespace

func NewNamespace() *v1.Namespace

NewNamespace returns a random namespace object for testing.

func NewPDGroup

func NewPDGroup(namespace, name, clusterName string, replicas *int32, apply func(*v1alpha1.PDGroup)) *v1alpha1.PDGroup

func NewTiCDCGroup

func NewTiCDCGroup(namespace, name, clusterName string, replicas *int32,
	apply func(group *v1alpha1.TiCDCGroup),
) *v1alpha1.TiCDCGroup

func NewTiDBGroup

func NewTiDBGroup(namespace, name, clusterName string, replicas *int32, apply func(group *v1alpha1.TiDBGroup)) *v1alpha1.TiDBGroup

func NewTiFlashGroup

func NewTiFlashGroup(namespace, name, clusterName string, replicas *int32,
	apply func(group *v1alpha1.TiFlashGroup),
) *v1alpha1.TiFlashGroup

func NewTiKVGroup

func NewTiKVGroup(namespace, name, clusterName string, replicas *int32, apply func(*v1alpha1.TiKVGroup)) *v1alpha1.TiKVGroup

func StorageSizeGi2quantity

func StorageSizeGi2quantity(sizeGi uint32) resource.Quantity

Types

This section is empty.

Jump to

Keyboard shortcuts

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