File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -472,12 +472,8 @@ func serverConfig(cluster *v1beta1.PostgresCluster) iniSectionSet {
472
472
// going to workaround the issue by allowing the user to add an annotation to
473
473
// enable IPv6. We will check for that annotation here and override the
474
474
// "tls-server-address" setting accordingly.
475
- annotations := cluster .GetAnnotations ()
476
- if annotations != nil {
477
- if ipVersion , exists := annotations [naming .PGBackRestIPVersion ]; exists &&
478
- strings .ToLower (ipVersion ) == "ipv6" {
479
- global .Set ("tls-server-address" , "::" )
480
- }
475
+ if strings .ToLower (cluster .Annotations [naming .PGBackRestIPVersion ]) == "ipv6" {
476
+ global .Set ("tls-server-address" , "::" )
481
477
}
482
478
483
479
// The client certificate for this cluster is allowed to connect for any stanza.
You can’t perform that action at this time.
0 commit comments