fix typos
This commit is contained in:
parent
0ed47c7aea
commit
9c19a22a7f
|
|
@ -451,7 +451,7 @@ func (c *Cluster) generateService(role PostgresRole, newSpec *spec.PostgresSpec)
|
||||||
if (newSpec.UseLoadBalancer != nil && *newSpec.UseLoadBalancer) ||
|
if (newSpec.UseLoadBalancer != nil && *newSpec.UseLoadBalancer) ||
|
||||||
(newSpec.UseLoadBalancer == nil && c.OpConfig.EnableLoadBalancer) {
|
(newSpec.UseLoadBalancer == nil && c.OpConfig.EnableLoadBalancer) {
|
||||||
|
|
||||||
// safe default value: lock load balancer to only local address unless overriden explicitely.
|
// safe default value: lock load balancer to only local address unless overridden explicitly.
|
||||||
sourceRanges := []string{localHost}
|
sourceRanges := []string{localHost}
|
||||||
allowedSourceRanges := newSpec.AllowedSourceRanges
|
allowedSourceRanges := newSpec.AllowedSourceRanges
|
||||||
if len(allowedSourceRanges) >= 0 {
|
if len(allowedSourceRanges) >= 0 {
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ type PostgresSpec struct {
|
||||||
|
|
||||||
TeamID string `json:"teamId"`
|
TeamID string `json:"teamId"`
|
||||||
AllowedSourceRanges []string `json:"allowedSourceRanges"`
|
AllowedSourceRanges []string `json:"allowedSourceRanges"`
|
||||||
// EnableLoadBalancer is a pointer, since it is importat to know if that parameters is omited from the manifest
|
// EnableLoadBalancer is a pointer, since it is importat to know if that parameters is omitted from the manifest
|
||||||
UseLoadBalancer *bool `json:"useLoadBalancer,omitempty"`
|
UseLoadBalancer *bool `json:"useLoadBalancer,omitempty"`
|
||||||
ReplicaLoadBalancer bool `json:"replicaLoadBalancer,omitempty"`
|
ReplicaLoadBalancer bool `json:"replicaLoadBalancer,omitempty"`
|
||||||
NumberOfInstances int32 `json:"numberOfInstances"`
|
NumberOfInstances int32 `json:"numberOfInstances"`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue