PGBackRestBackupJob returns the ObjectMeta for the pgBackRest backup Job utilized to create replicas using pgBackRest
(cluster *v1beta1.PostgresCluster)
| 453 | // PGBackRestBackupJob returns the ObjectMeta for the pgBackRest backup Job utilized |
| 454 | // to create replicas using pgBackRest |
| 455 | func PGBackRestBackupJob(cluster *v1beta1.PostgresCluster) metav1.ObjectMeta { |
| 456 | return metav1.ObjectMeta{ |
| 457 | Name: cluster.GetName() + "-backup-" + rand.String(4), |
| 458 | Namespace: cluster.GetNamespace(), |
| 459 | } |
| 460 | } |
| 461 | |
| 462 | // PGBackRestCronJob returns the ObjectMeta for a pgBackRest CronJob |
| 463 | func PGBackRestCronJob(cluster *v1beta1.PostgresCluster, backuptype, repoName string) metav1.ObjectMeta { |