diff --git a/pkg/operator/controller/ingress/load_balancer_service.go b/pkg/operator/controller/ingress/load_balancer_service.go index 9aeeeee783..c27ee63340 100644 --- a/pkg/operator/controller/ingress/load_balancer_service.go +++ b/pkg/operator/controller/ingress/load_balancer_service.go @@ -381,6 +381,7 @@ func loadBalancerServiceChanged(current, expected *corev1.Service, platform *con // modified. updated.Spec.ClusterIP = current.Spec.ClusterIP updated.Spec.ExternalIPs = current.Spec.ExternalIPs + updated.Spec.LoadBalancerSourceRanges = current.Spec.LoadBalancerSourceRanges updated.Spec.HealthCheckNodePort = current.Spec.HealthCheckNodePort for i, updatedPort := range updated.Spec.Ports { for _, currentPort := range current.Spec.Ports { diff --git a/pkg/operator/controller/ingress/load_balancer_service_test.go b/pkg/operator/controller/ingress/load_balancer_service_test.go index 2f035a0815..067d92d375 100644 --- a/pkg/operator/controller/ingress/load_balancer_service_test.go +++ b/pkg/operator/controller/ingress/load_balancer_service_test.go @@ -349,6 +349,13 @@ func TestLoadBalancerServiceChanged(t *testing.T) { }, expect: false, }, + { + description: "if .spec.loadBalancerSourceRanges changes", + mutate: func(svc *corev1.Service) { + svc.Spec.LoadBalancerSourceRanges = []string{"3.4.5.6/32"} + }, + expect: false, + }, { description: "if .spec.clusterIP changes", mutate: func(svc *corev1.Service) {