Skip to content

Commit b02bcbd

Browse files
author
Peng Zhou
committed
Fix typo
1 parent aa5a651 commit b02bcbd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/k8sutil/haProxy.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ func (cc *ClusterContext) ReconcileHAProxy() result.ReconcileResult {
116116
}
117117
}
118118

119-
// Check if the HAProxy Deployment is updated
120-
logger.Info("!!@@##Checking if HAProxy Deployment is updated", "labels:", labels)
121119
haproxyDeployment := &appsv1.Deployment{}
122120
deployName := types.NamespacedName{Name: "marklogic-haproxy", Namespace: cr.Namespace}
123121
err = client.Get(cc.Ctx, deployName, haproxyDeployment)
@@ -365,7 +363,7 @@ func (cc *ClusterContext) generateHaproxyServiceDef(meta metav1.ObjectMeta) *cor
365363
Port: cr.Spec.HAProxy.Stats.Port,
366364
})
367365
}
368-
selectorLables := getHAProxyLabels(cr.GetObjectMeta().GetName())
366+
selectorLabels := getHAProxyLabels(cr.GetObjectMeta().GetName())
369367
serviceDef := &corev1.Service{
370368
ObjectMeta: metav1.ObjectMeta{
371369
Name: "marklogic-haproxy",
@@ -374,7 +372,7 @@ func (cc *ClusterContext) generateHaproxyServiceDef(meta metav1.ObjectMeta) *cor
374372
Annotations: meta.Annotations,
375373
},
376374
Spec: corev1.ServiceSpec{
377-
Selector: selectorLables,
375+
Selector: selectorLabels,
378376
Ports: servicePort,
379377
Type: corev1.ServiceTypeClusterIP,
380378
},

0 commit comments

Comments
 (0)