MCPcopy Index your code
hub / github.com/zalando/postgres-operator / postgresTeamAdd

Method postgresTeamAdd

pkg/controller/util.go:413–421  ·  view source on GitHub ↗
(obj interface{})

Source from the content-addressed store, hash-verified

411}
412
413func (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
423func (c *Controller) postgresTeamUpdate(prev, obj interface{}) {
424 pgTeam, ok := obj.(*acidv1.PostgresTeam)

Callers

nothing calls this directly

Calls 1

loadPostgresTeamsMethod · 0.95

Tested by

no test coverage detected