mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-05 09:50:51 +02:00
polishing and fixes
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user