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

Function PGBackRestSecret

internal/naming/names.go:506–511  ·  view source on GitHub ↗

PGBackRestSecret returns the ObjectMeta for a pgBackRest Secret

(cluster *v1beta1.PostgresCluster)

Source from the content-addressed store, hash-verified

504
505// PGBackRestSecret returns the ObjectMeta for a pgBackRest Secret
506func PGBackRestSecret(cluster *v1beta1.PostgresCluster) metav1.ObjectMeta {
507 return metav1.ObjectMeta{
508 Name: cluster.GetName() + "-pgbackrest",
509 Namespace: cluster.GetNamespace(),
510 }
511}
512
513// DeprecatedPostgresUserSecret returns the ObjectMeta necessary to lookup the
514// old Secret containing the default Postgres user and connection information.

Callers 7

AddConfigToInstancePodFunction · 0.92
AddConfigToRepoPodFunction · 0.92
AddConfigToRestorePodFunction · 0.92
AddServerToRepoPodFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected