From 893a828587a7286d526324799a7f86d8f7c55821 Mon Sep 17 00:00:00 2001 From: Nick Sardo Date: Wed, 19 Apr 2017 15:00:27 -0700 Subject: [PATCH] Revert "Remove the code which get same resources twice" --- controllers/gce/controller/controller.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controllers/gce/controller/controller.go b/controllers/gce/controller/controller.go index 397a610ac..d3e4772ec 100644 --- a/controllers/gce/controller/controller.go +++ b/controllers/gce/controller/controller.go @@ -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)