Minor fix

This commit is contained in:
Rafia Sabih 2020-09-11 10:22:29 +02:00
parent 46ff4bb738
commit 7c9b459919
1 changed files with 4 additions and 2 deletions

View File

@ -2317,8 +2317,10 @@ func (c *Cluster) generateConnectionPoolerService(spec *acidv1.PostgresSpec, rol
TargetPort: intstr.IntOrString{StrVal: c.servicePort(role)}, TargetPort: intstr.IntOrString{StrVal: c.servicePort(role)},
}, },
}, },
Type: v1.ServiceTypeClusterIP, Type: v1.ServiceTypeClusterIP,
Selector: map[string]string{"connection-pooler": c.connectionPoolerName(role)}, Selector: map[string]string{
"connection-pooler": c.connectionPoolerName(role),
},
} }
service := &v1.Service{ service := &v1.Service{