k8s

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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 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