fixing debug logs and raise QueueResyncPeriodTPR

This commit is contained in:
Felix Kunde
2020-10-22 13:45:35 +02:00
parent 65f1b35275
commit ed2b3239b6
5 changed files with 15 additions and 12 deletions
+1 -1
View File
@@ -345,7 +345,7 @@ func (c *Controller) initSharedInformers() {
c.postgresTeamInformer = acidv1informer.NewPostgresTeamInformer(
c.KubeClient.AcidV1ClientSet,
c.opConfig.WatchedNamespace,
constants.QueueResyncPeriodTPR,
constants.QueueResyncPeriodTPR*6, // 30 min
cache.Indexers{})
c.postgresTeamInformer.AddEventHandler(cache.ResourceEventHandlerFuncs{
+1
View File
@@ -406,6 +406,7 @@ func (c *Controller) loadPostgresTeams() {
}
c.pgTeamMap.Load(pgTeams)
c.logger.Debugf("Internal Postgres Team Cache: %#v", c.pgTeamMap)
}
func (c *Controller) postgresTeamAdd(obj interface{}) {