Skip to content

Commit

Permalink
Merge pull request #3142 from jdhirst/loadbalancerclass
Browse files Browse the repository at this point in the history
OCPBUGS-30833: Added a check for loadBalancerClass for built-in load balancing service.
  • Loading branch information
openshift-merge-bot[bot] committed Apr 8, 2024
2 parents 7554faf + fa74f4a commit 5f38f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/loadbalancerservice/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (c *LoadbalancerServiceController) updateServiceStatus(key string) error {
klog.Infof("Service %s does not exist anymore", key)
} else {
svc := obj.(*corev1.Service)
if svc.Spec.Type != corev1.ServiceTypeLoadBalancer {
if svc.Spec.Type != corev1.ServiceTypeLoadBalancer || svc.Spec.LoadBalancerClass != nil {
return nil
}
klog.Infof("Process service %s/%s", svc.Namespace, svc.Name)
Expand Down

0 comments on commit 5f38f7f

Please sign in to comment.