Documentation
¶
Index ¶
- Constants
- Variables
- func CheckPITRErrors(ctx context.Context, cl client.Client, clcmd clientcmd.Client, ...) error
- func NewPVC(cr *api.PerconaXtraDBClusterBackup, cluster *api.PerconaXtraDBCluster) *corev1.PersistentVolumeClaim
- func PVCRestorePod(cr *api.PerconaXtraDBClusterRestore, bcpStorageName, pvcName string, ...) (*corev1.Pod, error)
- func PVCRestoreService(cr *api.PerconaXtraDBClusterRestore, cluster *api.PerconaXtraDBCluster) *corev1.Service
- func PrepareJob(cr *api.PerconaXtraDBClusterRestore, bcp *api.PerconaXtraDBClusterBackup, ...) (*batchv1.Job, error)
- func RestoreJob(ctx context.Context, cr *api.PerconaXtraDBClusterRestore, ...) (*batchv1.Job, error)
- func SetStorageAzure(ctx context.Context, job *batchv1.JobSpec, cr *api.PerconaXtraDBClusterBackup) error
- func SetStoragePVC(ctx context.Context, job *batchv1.JobSpec, cr *api.PerconaXtraDBClusterBackup, ...) error
- func SetStorageS3(ctx context.Context, job *batchv1.JobSpec, cr *api.PerconaXtraDBClusterBackup) error
- func UpdatePITRTimeline(ctx context.Context, cl client.Client, clcmd clientcmd.Client, ...) error
- type Backup
Constants ¶
View Source
const PXCClusterBackupField = ".spec.pxcCluster"
Variables ¶
View Source
var ErrNoBackups = errors.New("No backups found")
Functions ¶
func CheckPITRErrors ¶ added in v1.13.0
func NewPVC ¶
func NewPVC(cr *api.PerconaXtraDBClusterBackup, cluster *api.PerconaXtraDBCluster) *corev1.PersistentVolumeClaim
NewPVC returns the list of PersistentVolumeClaims for the backups
func PVCRestorePod ¶ added in v1.0.0
func PVCRestorePod(cr *api.PerconaXtraDBClusterRestore, bcpStorageName, pvcName string, cluster *api.PerconaXtraDBCluster, initImage string) (*corev1.Pod, error)
func PVCRestoreService ¶ added in v1.0.0
func PVCRestoreService(cr *api.PerconaXtraDBClusterRestore, cluster *api.PerconaXtraDBCluster) *corev1.Service
func PrepareJob ¶ added in v1.18.0
func PrepareJob( cr *api.PerconaXtraDBClusterRestore, bcp *api.PerconaXtraDBClusterBackup, cluster *api.PerconaXtraDBCluster, initImage string, scheme *runtime.Scheme, ) (*batchv1.Job, error)
PrepareJob creates a Kubernetes Job that prepares a restored PXC cluster for operation. This job runs after the data has been restored but before the cluster is started.
The job mounts the PVC of the first PXC node and runs preparation scripts to ensure the restored data is ready for the cluster to start properly.
func RestoreJob ¶ added in v1.14.0
func RestoreJob( ctx context.Context, cr *api.PerconaXtraDBClusterRestore, bcp *api.PerconaXtraDBClusterBackup, cluster *api.PerconaXtraDBCluster, initImage string, scheme *runtime.Scheme, destination api.PXCBackupDestination, pitr bool, ) (*batchv1.Job, error)
func SetStorageAzure ¶ added in v1.12.0
func SetStoragePVC ¶ added in v1.12.0
func SetStorageS3 ¶ added in v1.12.0
Types ¶
Click to show internal directories.
Click to hide internal directories.