mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 16:46:35 +02:00
Remove early stopping conditions that rely on the relica service being absent
This commit is contained in:
@@ -128,11 +128,6 @@ func (c *Cluster) syncService(role PostgresRole) error {
|
||||
}
|
||||
c.Services[role] = nil
|
||||
|
||||
// Service does not exist
|
||||
if role == Replica && !c.Spec.ReplicaLoadBalancer {
|
||||
return nil
|
||||
}
|
||||
|
||||
c.logger.Infof("could not find the cluster's %s service", role)
|
||||
|
||||
if svc, err := c.createService(role); err != nil {
|
||||
@@ -168,10 +163,6 @@ func (c *Cluster) syncEndpoint(role PostgresRole) error {
|
||||
}
|
||||
c.Endpoints[role] = nil
|
||||
|
||||
if role == Replica && !c.Spec.ReplicaLoadBalancer {
|
||||
return nil
|
||||
}
|
||||
|
||||
c.logger.Infof("could not find the cluster's %s endpoint", role)
|
||||
|
||||
if ep, err := c.createEndpoint(role); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user