File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -415,6 +415,7 @@ func (c *Controller) postgresTeamAdd(obj interface{}) {
415
415
pgTeam , ok := obj .(* acidv1.PostgresTeam )
416
416
if ! ok {
417
417
c .logger .Errorf ("could not cast to PostgresTeam spec" )
418
+ return
418
419
}
419
420
c .logger .Debugf ("PostgreTeam %q added. Reloading postgres team CRDs and overwriting cached map" , pgTeam .Name )
420
421
c .loadPostgresTeams ()
@@ -424,6 +425,7 @@ func (c *Controller) postgresTeamUpdate(prev, obj interface{}) {
424
425
pgTeam , ok := obj .(* acidv1.PostgresTeam )
425
426
if ! ok {
426
427
c .logger .Errorf ("could not cast to PostgresTeam spec" )
428
+ return
427
429
}
428
430
c .logger .Debugf ("PostgreTeam %q updated. Reloading postgres team CRDs and overwriting cached map" , pgTeam .Name )
429
431
c .loadPostgresTeams ()
You can’t perform that action at this time.
0 commit comments