defaultPgBaseBackup enriches the pg_basebackup with defaults if not all the required arguments were passed
()
| 272 | |
| 273 | // defaultPgBaseBackup enriches the pg_basebackup with defaults if not all the required arguments were passed |
| 274 | func (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 | |
| 283 | const ( |
| 284 | // defaultRequestTimeout is the default value of the request timeout |