Merge pull request #3270 from ukinau/Fix-3269-sort-should-be-done-before-pass-to-update-status
Don't sort IngressStatus from each Goroutine(update for each ingress)
This commit is contained in:
commit
12fba876c3
1 changed files with 1 additions and 2 deletions
|
@ -330,6 +330,7 @@ func (s *statusSync) updateStatus(newIngressPoint []apiv1.LoadBalancerIngress) {
|
||||||
defer p.Close()
|
defer p.Close()
|
||||||
|
|
||||||
batch := p.Batch()
|
batch := p.Batch()
|
||||||
|
sort.SliceStable(newIngressPoint, lessLoadBalancerIngress(newIngressPoint))
|
||||||
|
|
||||||
for _, ing := range ings {
|
for _, ing := range ings {
|
||||||
batch.Queue(runUpdate(ing, newIngressPoint, s.Client))
|
batch.Queue(runUpdate(ing, newIngressPoint, s.Client))
|
||||||
|
@ -346,8 +347,6 @@ func runUpdate(ing *extensions.Ingress, status []apiv1.LoadBalancerIngress,
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
sort.SliceStable(status, lessLoadBalancerIngress(status))
|
|
||||||
|
|
||||||
curIPs := ing.Status.LoadBalancer.Ingress
|
curIPs := ing.Status.LoadBalancer.Ingress
|
||||||
sort.SliceStable(curIPs, lessLoadBalancerIngress(curIPs))
|
sort.SliceStable(curIPs, lessLoadBalancerIngress(curIPs))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue