From 5388eb4db64439e593bb8b7cafae588894f25cc7 Mon Sep 17 00:00:00 2001 From: Wenkai Yin Date: Tue, 11 Dec 2018 13:58:37 +0800 Subject: [PATCH] Read ssl mode param from the adminserver to init the connection with database (#6504) This commit adds the ssl mode as a param when establishing the connection with database Signed-off-by: Wenkai Yin --- src/jobservice/job/impl/context.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jobservice/job/impl/context.go b/src/jobservice/job/impl/context.go index c47f69167..bb4063af3 100644 --- a/src/jobservice/job/impl/context.go +++ b/src/jobservice/job/impl/context.go @@ -230,6 +230,7 @@ func getDBFromConfig(cfg map[string]interface{}) *models.Database { postgresql.Username = cfg[common.PostGreSQLUsername].(string) postgresql.Password = cfg[common.PostGreSQLPassword].(string) postgresql.Database = cfg[common.PostGreSQLDatabase].(string) + postgresql.SSLMode = cfg[common.PostGreSQLSSLMode].(string) database.PostGreSQL = postgresql return database