Merge pull request #627 from kubernetes/revert-510-delete_redundant

Revert "Remove the code which get same resources twice"
This commit is contained in:
Nick Sardo 2017-04-19 15:01:21 -07:00 committed by GitHub
commit 94d256e44d

View file

@ -371,6 +371,10 @@ func (lbc *LoadBalancerController) updateIngressStatus(l7 *loadbalancers.L7, ing
}
}
// Update annotations through /update endpoint
currIng, err = ingClient.Get(ing.Name, metav1.GetOptions{})
if err != nil {
return err
}
currIng.Annotations = loadbalancers.GetLBAnnotations(l7, currIng.Annotations, lbc.CloudClusterManager.backendPool)
if !reflect.DeepEqual(ing.Annotations, currIng.Annotations) {
glog.V(3).Infof("Updating annotations of %v/%v", ing.Namespace, ing.Name)