tidbcluster

package
v1.6.0-alpha.12 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 78 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperatorLatestVersion    string = "v1.5.0-beta.1"
	OperatorPrevMajorVersion string = "v1.4.6"
)

Variables

This section is empty.

Functions

func CheckPeerMembersAndClusterStatus added in v1.3.0

func CheckPeerMembersAndClusterStatus(clusterCli ctrlCli.Client, tc *v1alpha1.TidbCluster, expectNonExistedTc *v1alpha1.TidbCluster) error

func CheckStatusWhenAcrossK8s added in v1.3.0

func CheckStatusWhenAcrossK8s(cli versioned.Interface, tidbclusters []*v1alpha1.TidbCluster) error

func CheckStatusWhenAcrossK8sWithTimeout added in v1.3.0

func CheckStatusWhenAcrossK8sWithTimeout(cli versioned.Interface, tidbclusters []*v1alpha1.TidbCluster, interval time.Duration, timeout time.Duration) error

func DeleteCertManager added in v1.1.6

func DeleteCertManager(cli clientset.Interface) error

func EnsureRecordsNotChangedForTables added in v1.4.0

func EnsureRecordsNotChangedForTables(db *utildb.Database, engine string, dbName string, tables []string, expectCount int)

EnsureRecordsNotChangedForTables ensure records not changed for tables

func GetTCForAcrossKubernetes added in v1.3.0

func GetTCForAcrossKubernetes(ns, name, version, clusterDomain string, joinTC *v1alpha1.TidbCluster) *v1alpha1.TidbCluster

func InstallCertManager added in v1.1.6

func InstallCertManager(cli clientset.Interface) error

func InstallDMCertificates added in v1.2.0

func InstallDMCertificates(ns, dcName string) error

func InstallMySQLCertificates added in v1.2.0

func InstallMySQLCertificates(ns, dcName string) error

func InstallTiDBCertificates added in v1.2.0

func InstallTiDBCertificates(ns, tcName string) error

func InstallTiDBComponentsCertificates added in v1.3.0

func InstallTiDBComponentsCertificates(ns, tcName string) error

func InstallTiDBIssuer added in v1.2.0

func InstallTiDBIssuer(ns, tcName string) error

func InstallXK8sTiDBCertificates added in v1.3.0

func InstallXK8sTiDBCertificates(ns, tcName, clusterDomain string) error

func InstallXK8sTiDBComponentsCertificates added in v1.3.0

func InstallXK8sTiDBComponentsCertificates(ns, tcName, clusterDomain string, exceptPD bool) error

func InstallXK8sTiDBIssuer added in v1.3.0

func InstallXK8sTiDBIssuer(ns, tcName, clusterRef string) error

func MustCreateTiFlashReplicationForTable added in v1.4.0

func MustCreateTiFlashReplicationForTable(db *utildb.Database, dbName string, table string, expectCount int)

MustCreateTiFlashReplicationForTable create TiFLash replication and ensure it is ready

func MustCreateXK8sTCWithComponentsReady added in v1.3.0

func MustCreateXK8sTCWithComponentsReady(cli ctrlCli.Client, oa *tests.OperatorActions, tidbclusters []*v1alpha1.TidbCluster, tlsEnabled bool)

func MustGetLabelSelectorForComponents added in v1.3.2

func MustGetLabelSelectorForComponents(tcName string, filterComponents ...string) labels.Selector

func MustPrepareXK8sTLSResources added in v1.3.0

func MustPrepareXK8sTLSResources(cli ctrlCli.Client, initialTC *v1alpha1.TidbCluster, restTCs []*v1alpha1.TidbCluster)

func WaitObjectToBeControlledByOrDie

func WaitObjectToBeControlledByOrDie(c client.Client, obj client.Object, owner runtime.Object, timeout time.Duration)

WaitObjectToBeControlledByOrDie wait desired owner become the controller of the object

Types

This section is empty.

Jump to

Keyboard shortcuts

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