Minor improvements

This commit is contained in:
Sergey Dudoladov 2018-03-02 14:03:41 +01:00
parent 2aeff096f7
commit 5ff562a607
2 changed files with 2 additions and 2 deletions

View File

@ -703,7 +703,7 @@ func (c *Cluster) generateService(role PostgresRole, spec *spec.PostgresSpec) *v
var annotations map[string]string
if c.shouldCreateLoadBalancerForService(role, spec) == true {
if c.shouldCreateLoadBalancerForService(role, spec) {
// safe default value: lock load balancer to only local address unless overridden explicitly.
sourceRanges := []string{localHost}

View File

@ -99,7 +99,7 @@ type PostgresSpec struct {
// EnableLoadBalancer is a pointer, since it is important to know if that parameters is omitted from the Postgres manifest
// in that case UseLoadBalancer == nil and the value is taken from the operator config
UseLoadBalancer *bool `json:"useLoadBalancer,omitempty"`
// if ReplicaLoadBalancer == nil (is unset), value of UseLoadBalancer takes priority
// if ReplicaLoadBalancer == nil (is unset), value of UseLoadBalancer determines if a balancer for replicas is created
ReplicaLoadBalancer *bool `json:"replicaLoadBalancer,omitempty"`
NumberOfInstances int32 `json:"numberOfInstances"`
Users map[string]UserFlags `json:"users"`