MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / PGBackRestBackupJob

Function PGBackRestBackupJob

internal/naming/names.go:455–460  ·  view source on GitHub ↗

PGBackRestBackupJob returns the ObjectMeta for the pgBackRest backup Job utilized to create replicas using pgBackRest

(cluster *v1beta1.PostgresCluster)

Source from the content-addressed store, hash-verified

453// PGBackRestBackupJob returns the ObjectMeta for the pgBackRest backup Job utilized
454// to create replicas using pgBackRest
455func 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
463func PGBackRestCronJob(cluster *v1beta1.PostgresCluster, backuptype, repoName string) metav1.ObjectMeta {

Callers 3

reconcileManualBackupMethod · 0.92

Calls 1

StringMethod · 0.45

Tested by 1