Add separate params for master and replica load balancers to operator configuration

This commit is contained in:
Sergey Dudoladov
2018-03-14 12:12:28 +01:00
parent ac6c5bcf09
commit 0986e56226
4 changed files with 29 additions and 27 deletions
+1 -1
View File
@@ -679,7 +679,7 @@ func (c *Cluster) shouldCreateLoadBalancerForService(role PostgresRole, spec *sp
// create a load balancer for the master service if either Postgres or operator manifests tell to do so
// if ReplicaLoadBalancer is unset and LB for master service is created, also create a balancer for replicas
return (spec.EnableMasterLoadBalancer != nil && *spec.EnableMasterLoadBalancer) ||
(spec.EnableMasterLoadBalancer == nil && c.OpConfig.EnableLoadBalancer)
(spec.EnableMasterLoadBalancer == nil && c.OpConfig.EnableMasterLoadBalancer)
}