defaultRecovery enriches the recovery with defaults if not all the required arguments were passed
()
| 262 | |
| 263 | // defaultRecovery enriches the recovery with defaults if not all the required arguments were passed |
| 264 | func (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 |
| 274 | func (r *Cluster) defaultPgBaseBackup() { |