From 0fa2a32b6fd49a34473671048860cd59bf204656 Mon Sep 17 00:00:00 2001 From: Ian Quick Date: Mon, 13 Mar 2017 18:39:35 -0400 Subject: [PATCH] pass the ingress in or the 2nd invocation will be used --- core/pkg/ingress/status/status.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/pkg/ingress/status/status.go b/core/pkg/ingress/status/status.go index 0dc855513..6e54d422b 100644 --- a/core/pkg/ingress/status/status.go +++ b/core/pkg/ingress/status/status.go @@ -252,7 +252,7 @@ func (s *statusSync) updateStatus(newIPs []api.LoadBalancerIngress) { continue } - go func(wg *sync.WaitGroup) { + go func(wg *sync.WaitGroup, ing *extensions.Ingress) { defer wg.Done() ingClient := s.Client.Extensions().Ingresses(ing.Namespace) currIng, err := ingClient.Get(ing.Name) @@ -274,7 +274,7 @@ func (s *statusSync) updateStatus(newIPs []api.LoadBalancerIngress) { if err != nil { glog.Warningf("error updating ingress rule: %v", err) } - }(&wg) + }(&wg, ing) } wg.Wait()