k8s

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoIncrBackupFound = errors.New("no incremental backup found in chain")

Functions

func GetLastFullBackup

func GetLastFullBackup(
	ctx context.Context,
	cl client.Client,
	clusterName,
	namespace string,
	storage *apiv1.BackupStorageSpec,
) (*apiv1.PerconaServerMySQLBackup, error)

func GetLatestIncrementalBackupInChain

func GetLatestIncrementalBackupInChain(
	ctx context.Context,
	cl client.Client,
	backup *apiv1.PerconaServerMySQLBackup,
) (*apiv1.PerconaServerMySQLBackup, error)

GetLatestIncrementalBackupInChain returns the most recently completed incremental backup that shares the same base (full) backup as the given backup. The "chain" is identified by the AnnotationBaseBackupName annotation: all incremental backups pointing to the same base belong to the same chain. If the input is a full backup, its destination name is used as the chain identifier; if incremental, the base annotation value is used instead.

func GetOperatorPod added in v1.2.0

func GetOperatorPod(ctx context.Context, cl client.Reader) (*corev1.Pod, error)

func GetRunningBackup added in v1.2.0

func GetRunningBackup(
	ctx context.Context,
	cl client.Client,
	clusterName,
	namespace string,
) (*apiv1.PerconaServerMySQLBackup, error)

func IsRestoreActive added in v1.2.0

func IsRestoreActive(ctx context.Context, cl client.Client, restoreName, namespace string) (bool, error)

func ListDependentIncrementalBackups

func ListDependentIncrementalBackups(
	ctx context.Context,
	cl client.Client,
	backup *apiv1.PerconaServerMySQLBackup,
) ([]*apiv1.PerconaServerMySQLBackup, error)

ListDependentIncrementalBackups returns all incremental backups that belong to the same chain as the given backup, i.e. all incrementals whose AnnotationBaseBackupName matches this backup's base. For a full backup this lists all incrementals that depend on it; for an incremental backup this lists all siblings in the same chain. Backups are sorted by CompletedAt (oldest to newest).

Types

This section is empty.

Jump to

Keyboard shortcuts

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