polishing and fixes

This commit is contained in:
Felix Kunde
2020-10-19 11:39:59 +02:00
parent d246e8492b
commit c4ee9f9225
8 changed files with 90 additions and 13 deletions
+2 -1
View File
@@ -396,7 +396,7 @@ func (c *Controller) getInfrastructureRole(
}
func (c *Controller) loadPostgresTeams(obj interface{}) {
var pgTeamMap teams.PostgresTeamMap
pgTeamMap := teams.PostgresTeamMap{}
pgTeam, ok := obj.(*acidv1.PostgresTeam)
if !ok {
@@ -412,6 +412,7 @@ func (c *Controller) loadPostgresTeams(obj interface{}) {
}
func (c *Controller) updatePostgresTeams(prev, obj interface{}) {
c.logger.Debugf("reloading postgres team CRDs and overwriting cached map")
c.loadPostgresTeams(obj)
}