GetInstance gets the PostgreSQL instance which correspond to these init information
(cluster *apiv1.Cluster)
| 296 | |
| 297 | // GetInstance gets the PostgreSQL instance which correspond to these init information |
| 298 | func (info InitInfo) GetInstance(cluster *apiv1.Cluster) *Instance { |
| 299 | postgresInstance := NewInstance() |
| 300 | postgresInstance.PgData = info.PgData |
| 301 | postgresInstance.StartupOptions = []string{"listen_addresses='127.0.0.1'"} |
| 302 | postgresInstance.SetCluster(cluster) |
| 303 | return postgresInstance |
| 304 | } |
| 305 | |
| 306 | // ConfigureNewInstance creates the expected users and databases in a new |
| 307 | // PostgreSQL instance. If any error occurs, we return it |
no test coverage detected