Documentation ¶
Index ¶
- func AgentContainer(cr *api.PerconaServerMongoDB, replsetName string, replsetSize int32) (corev1.Container, error)
- func BackupCronJob(backup *api.BackupTaskSpec, crName, namespace string, ...) *batchv1b.CronJob
- func HasActiveJobs(cl client.Client, cluster, namespace string, current Job) (bool, error)
- func NewBackupCronJobLabels(crName string) map[string]string
- type Job
- type JobType
- type PBM
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgentContainer ¶
func AgentContainer(cr *api.PerconaServerMongoDB, replsetName string, replsetSize int32) (corev1.Container, error)
AgentContainer creates the container object for a backup agent
func BackupCronJob ¶
func BackupCronJob(backup *api.BackupTaskSpec, crName, namespace string, backupSpec api.BackupSpec, imagePullSecrets []corev1.LocalObjectReference) *batchv1b.CronJob
func HasActiveJobs ¶ added in v1.4.0
HasActiveJobs returns true if there are running backups or restores in given cluster and namestpace
func NewBackupCronJobLabels ¶ added in v1.2.0
Types ¶
Click to show internal directories.
Click to hide internal directories.