Log if replica service has no load balancer
This commit is contained in:
parent
5ff562a607
commit
5bc5e70c81
|
|
@ -721,6 +721,10 @@ func (c *Cluster) generateService(role PostgresRole, spec *spec.PostgresSpec) *v
|
|||
constants.ZalandoDNSNameAnnotation: dnsName,
|
||||
constants.ElbTimeoutAnnotationName: constants.ElbTimeoutAnnotationValue,
|
||||
}
|
||||
} else if role == Replica {
|
||||
// before PR #258, the replica service was only created if allocated a LB
|
||||
// now we always create the service but warn if the LB is absent
|
||||
c.logger.Debugf("No load balancer created for the replica service")
|
||||
}
|
||||
|
||||
service := &v1.Service{
|
||||
|
|
|
|||
Loading…
Reference in New Issue