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

Method defaultPgBaseBackup

api/v1/cluster_defaults.go:274–281  ·  view source on GitHub ↗

defaultPgBaseBackup enriches the pg_basebackup with defaults if not all the required arguments were passed

()

Source from the content-addressed store, hash-verified

272
273// defaultPgBaseBackup enriches the pg_basebackup with defaults if not all the required arguments were passed
274func (r *Cluster) defaultPgBaseBackup() {
275 if r.Spec.Bootstrap.PgBaseBackup.Database == "" {
276 r.Spec.Bootstrap.PgBaseBackup.Database = DefaultApplicationDatabaseName
277 }
278 if r.Spec.Bootstrap.PgBaseBackup.Owner == "" {
279 r.Spec.Bootstrap.PgBaseBackup.Owner = r.Spec.Bootstrap.PgBaseBackup.Database
280 }
281}
282
283const (
284 // defaultRequestTimeout is the default value of the request timeout

Callers 1

setDefaultsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected