backup

package
v1.6.0-alpha.16 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BRType     = "br"
	DumperType = "dumper"
)

Variables

This section is empty.

Functions

func GetBackup

func GetBackup(ns, name, tcName, typ string, s3Config *v1alpha1.S3StorageProvider) *v1alpha1.Backup

GetBackup return a basic backup

func GetRestore

func GetRestore(ns, name, tcName, typ string, s3Config *v1alpha1.S3StorageProvider) *v1alpha1.Restore

func GetRole

func GetRole(ns string) *rbacv1.Role

GetRole returns a role for br test.

func GetRoleBinding

func GetRoleBinding(ns string) *rbacv1.RoleBinding

GetRoleBinding returns a rolebinding for br test.

func GetSecret

func GetSecret(ns, name, password string) *corev1.Secret

GetSecret returns a secret to visit tidb.

func GetServiceAccount

func GetServiceAccount(ns string) *corev1.ServiceAccount

GetServiceAccount returns a sa for br test.

func WaitAndDeleteRunningBackupPod added in v1.4.4

func WaitAndDeleteRunningBackupPod(f *framework.Framework, backup *v1alpha1.Backup, timeout time.Duration) error

func WaitBackupPodOnPhase added in v1.4.4

func WaitBackupPodOnPhase(f *framework.Framework, backup *v1alpha1.Backup, phase corev1.PodPhase, timeout time.Duration) error

func WaitForBackupComplete

func WaitForBackupComplete(c versioned.Interface, ns, name string, timeout time.Duration) error

WaitForBackupComplete will poll and wait until timeout or backup complete condition is true

func WaitForBackupDeleted

func WaitForBackupDeleted(c versioned.Interface, ns, name string, timeout time.Duration) error

WaitForBackupDeleted will poll and wait until timeout or backup is really deleted

func WaitForBackupFailed added in v1.4.4

func WaitForBackupFailed(c versioned.Interface, ns, name string, timeout time.Duration) error

WaitForBackupFailed will poll and wait until timeout or backup failed condition is true

func WaitForBackupOnRunning added in v1.4.4

func WaitForBackupOnRunning(c versioned.Interface, ns, name string, timeout time.Duration) error

WaitForBackupOnRunning will poll and wait until timeout or backup phause is running

func WaitForLogBackupProgressReachTS added in v1.4.0

func WaitForLogBackupProgressReachTS(c versioned.Interface, ns, name, expect string, timeout time.Duration) error

WaitForLogBackupProgressReachTS will poll and wait until timeout or log backup tracker has update checkpoint ts to expect

func WaitForLogBackupReachTS added in v1.4.0

func WaitForLogBackupReachTS(name, pdhost, expect string, timeout time.Duration) error

WaitForLogBackupReachTS will poll and wait until timeout or log backup reach expect ts

func WaitForRestoreComplete

func WaitForRestoreComplete(c versioned.Interface, ns, name string, timeout time.Duration) error

WaitForRestoreComplete will poll and wait until timeout or restore complete condition is true

func WaitForRestoreProgressDone added in v1.4.0

func WaitForRestoreProgressDone(c versioned.Interface, ns, name string, timeout time.Duration) error

WaitForRestoreProgressDone will poll and wait until timeout or restore progress has update to 100

Types

This section is empty.

Jump to

Keyboard shortcuts

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