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

Method postgresTeamUpdate

pkg/controller/util.go:423–431  ·  view source on GitHub ↗
(prev, obj interface{})

Source from the content-addressed store, hash-verified

421}
422
423func (c *Controller) postgresTeamUpdate(prev, obj interface{}) {
424 pgTeam, ok := obj.(*acidv1.PostgresTeam)
425 if !ok {
426 c.logger.Errorf("could not cast to PostgresTeam spec")
427 return
428 }
429 c.logger.Debugf("PostgreTeam %q updated. Reloading postgres team CRDs and overwriting cached map", pgTeam.Name)
430 c.loadPostgresTeams()
431}
432
433func (c *Controller) podClusterName(pod *v1.Pod) spec.NamespacedName {
434 if name, ok := pod.Labels[c.opConfig.ClusterNameLabel]; ok {

Callers

nothing calls this directly

Calls 1

loadPostgresTeamsMethod · 0.95

Tested by

no test coverage detected