(obj interface{})
| 411 | } |
| 412 | |
| 413 | func (c *Controller) postgresTeamAdd(obj interface{}) { |
| 414 | pgTeam, ok := obj.(*acidv1.PostgresTeam) |
| 415 | if !ok { |
| 416 | c.logger.Errorf("could not cast to PostgresTeam spec") |
| 417 | return |
| 418 | } |
| 419 | c.logger.Debugf("PostgreTeam %q added. Reloading postgres team CRDs and overwriting cached map", pgTeam.Name) |
| 420 | c.loadPostgresTeams() |
| 421 | } |
| 422 | |
| 423 | func (c *Controller) postgresTeamUpdate(prev, obj interface{}) { |
| 424 | pgTeam, ok := obj.(*acidv1.PostgresTeam) |
nothing calls this directly
no test coverage detected