Add database and helm chart
Signed-off-by: Nikolai Rodionov <nrodionov@eos-uptrade.de>
This commit is contained in:
2
main.go
2
main.go
@@ -115,7 +115,7 @@ func server(ctx context.Context, params Serve) error {
|
||||
}()
|
||||
|
||||
log.Info("Opening a database connection")
|
||||
db, err := sql.Open("postgres", "postgres://softplayer:qwertyu9@localhost:30432/softplayer?sslmode=disable")
|
||||
db, err := sql.Open("postgres", params.DBConnectionString)
|
||||
if err != nil {
|
||||
log.Error(err, "Couldn't start a database driver")
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user