Documentation ¶
Index ¶
- Variables
- func CheckPITRErrors(ctx context.Context, cl client.Client, clcmd *clientcmd.Client, ...) error
- func GenName63(cr *api.PerconaXtraDBClusterBackup) string
- func NewPVC(cr *api.PerconaXtraDBClusterBackup) *corev1.PersistentVolumeClaim
- func PVCRestorePod(cr *api.PerconaXtraDBClusterRestore, bcpStorageName, pvcName string, ...) (*corev1.Pod, error)
- func PVCRestoreService(cr *api.PerconaXtraDBClusterRestore) *corev1.Service
- func RestoreJob(cr *api.PerconaXtraDBClusterRestore, bcp *api.PerconaXtraDBClusterBackup, ...) (*batchv1.Job, error)
- func SetStorageAzure(job *batchv1.JobSpec, cr *api.PerconaXtraDBClusterBackup) error
- func SetStoragePVC(job *batchv1.JobSpec, cr *api.PerconaXtraDBClusterBackup, volName string) error
- func SetStorageS3(job *batchv1.JobSpec, cr *api.PerconaXtraDBClusterBackup) error
- func UpdatePITRTimeline(ctx context.Context, cl client.Client, clcmd *clientcmd.Client, ...) error
- type Backup
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoBackups = errors.New("No backups found")
Functions ¶
func CheckPITRErrors ¶ added in v1.13.0
func GenName63 ¶ added in v1.8.0
func GenName63(cr *api.PerconaXtraDBClusterBackup) string
GenName63 generates legit name for backup resources. k8s sets the `job-name` label for the created by job pod. So we have to be sure that job name won't be longer than 63 symbols. Yet the job name has to have some meaningful name which won't be conflicting with other jobs' names.
func NewPVC ¶
func NewPVC(cr *api.PerconaXtraDBClusterBackup) *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) (*corev1.Pod, error)
func PVCRestoreService ¶ added in v1.0.0
func PVCRestoreService(cr *api.PerconaXtraDBClusterRestore) *corev1.Service
func RestoreJob ¶ added in v1.14.0
func RestoreJob(cr *api.PerconaXtraDBClusterRestore, bcp *api.PerconaXtraDBClusterBackup, cluster *api.PerconaXtraDBCluster, destination api.PXCBackupDestination, pitr bool) (*batchv1.Job, error)
func SetStorageAzure ¶ added in v1.12.0
func SetStorageAzure(job *batchv1.JobSpec, cr *api.PerconaXtraDBClusterBackup) error
func SetStoragePVC ¶ added in v1.12.0
func SetStorageS3 ¶ added in v1.12.0
func SetStorageS3(job *batchv1.JobSpec, cr *api.PerconaXtraDBClusterBackup) error
Types ¶
Click to show internal directories.
Click to hide internal directories.