From a72e94f29707fcdffdab940038e904f5c67ef23a Mon Sep 17 00:00:00 2001 From: chentao1596 Date: Fri, 10 Feb 2017 10:51:11 +0800 Subject: [PATCH] modify to get the right content when updating ingress --- core/pkg/ingress/status/status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/pkg/ingress/status/status.go b/core/pkg/ingress/status/status.go index b1618bf58..09ddb702d 100644 --- a/core/pkg/ingress/status/status.go +++ b/core/pkg/ingress/status/status.go @@ -251,7 +251,7 @@ func (s *statusSync) updateStatus(newIPs []api.LoadBalancerIngress) { return } - curIPs := ing.Status.LoadBalancer.Ingress + curIPs := currIng.Status.LoadBalancer.Ingress sort.Sort(loadBalancerIngressByIP(curIPs)) if ingressSliceEqual(newIPs, curIPs) { glog.V(3).Infof("skipping update of Ingress %v/%v (there is no change)", currIng.Namespace, currIng.Name)