@@ -144,10 +144,10 @@ func (r *Reconciler) generateClusterPrimaryService(
144144 service .Spec .Selector = nil
145145
146146 service .Spec .Ports = []corev1.ServicePort {{
147- Name : naming .PortPostgreSQL ,
148- Port : * cluster .Spec .Port ,
149- Protocol : corev1 .ProtocolTCP ,
150- TargetPort : intstr .FromString (naming .PortPostgreSQL ),
147+ Name : naming .PortPostgreSQL ,
148+ Port : * cluster .Spec .Port ,
149+ Protocol : corev1 .ProtocolTCP ,
150+ TargetPort : intstr .FromString (naming .PortPostgreSQL ),
151151 AppProtocol : initialize .String (postgres .IANAServiceName ),
152152 }}
153153
@@ -160,9 +160,9 @@ func (r *Reconciler) generateClusterPrimaryService(
160160 for _ , sp := range service .Spec .Ports {
161161 endpoints .Subsets [0 ].Ports = append (endpoints .Subsets [0 ].Ports ,
162162 corev1.EndpointPort {
163- Name : sp .Name ,
164- Port : sp .Port ,
165- Protocol : sp .Protocol ,
163+ Name : sp .Name ,
164+ Port : sp .Port ,
165+ Protocol : sp .Protocol ,
166166 AppProtocol : sp .AppProtocol ,
167167 })
168168 }
@@ -224,10 +224,10 @@ func (r *Reconciler) generateClusterReplicaService(
224224 // ContainerPort. This name allows the port number to differ between Pods,
225225 // which can happen during a rolling update.
226226 service .Spec .Ports = []corev1.ServicePort {{
227- Name : naming .PortPostgreSQL ,
228- Port : * cluster .Spec .Port ,
229- Protocol : corev1 .ProtocolTCP ,
230- TargetPort : intstr .FromString (naming .PortPostgreSQL ),
227+ Name : naming .PortPostgreSQL ,
228+ Port : * cluster .Spec .Port ,
229+ Protocol : corev1 .ProtocolTCP ,
230+ TargetPort : intstr .FromString (naming .PortPostgreSQL ),
231231 AppProtocol : initialize .String (postgres .IANAServiceName ),
232232 }}
233233
0 commit comments