Skip to content

Commit

Permalink
UPSTREAM: <carry>: chore: add meaningful logs to client initialization.
Browse files Browse the repository at this point in the history
Signed-off-by: Humair Khan <[email protected]>
  • Loading branch information
HumairAK committed Mar 15, 2024
1 parent 9741501 commit a5ed709
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend/src/apiserver/client_manager/client_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,10 @@ func (c *ClientManager) Authenticators() []auth.Authenticator {

func (c *ClientManager) init() {
glog.Info("Initializing client manager")
glog.Info("Initializing DB client...")
db := InitDBClient(common.GetDurationConfig(initConnectionTimeout))
db.SetConnMaxLifetime(common.GetDurationConfig(dbConMaxLifeTime))

glog.Info("DB client initialized successfully")
// time
c.time = util.NewRealTime()

Expand All @@ -185,8 +186,9 @@ func (c *ClientManager) init() {
c.resourceReferenceStore = storage.NewResourceReferenceStore(db)
c.dBStatusStore = storage.NewDBStatusStore(db)
c.defaultExperimentStore = storage.NewDefaultExperimentStore(db)
glog.Info("Initializing Minio client...")
c.objectStore = initMinioClient(common.GetDurationConfig(initConnectionTimeout))

glog.Info("Minio client initialized successfully")
// Use default value of client QPS (5) & burst (10) defined in
// k8s.io/client-go/rest/config.go#RESTClientFor
clientParams := util.ClientParameters{
Expand Down

0 comments on commit a5ed709

Please sign in to comment.