MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / defaultRecovery

Method defaultRecovery

api/v1/cluster_defaults.go:264–271  ·  view source on GitHub ↗

defaultRecovery enriches the recovery with defaults if not all the required arguments were passed

()

Source from the content-addressed store, hash-verified

262
263// defaultRecovery enriches the recovery with defaults if not all the required arguments were passed
264func (r *Cluster) defaultRecovery() {
265 if r.Spec.Bootstrap.Recovery.Database == "" {
266 r.Spec.Bootstrap.Recovery.Database = DefaultApplicationDatabaseName
267 }
268 if r.Spec.Bootstrap.Recovery.Owner == "" {
269 r.Spec.Bootstrap.Recovery.Owner = r.Spec.Bootstrap.Recovery.Database
270 }
271}
272
273// defaultPgBaseBackup enriches the pg_basebackup with defaults if not all the required arguments were passed
274func (r *Cluster) defaultPgBaseBackup() {

Callers 1

setDefaultsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected