Skip to content

Commit

Permalink
fix(gateway): don't reset status when reconciling (#3470)
Browse files Browse the repository at this point in the history
Remove the call to Get which resets the previous updateStatus

Signed-off-by: Mike Beaumont <[email protected]>
  • Loading branch information
michaelbeaumont committed Dec 10, 2021
1 parent 1c33d51 commit c9fa842
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ func (r *GatewayReconciler) Reconcile(ctx context.Context, req kube_ctrl.Request

r.updateStatus(gateway, svc, deployment)

if err := r.Get(ctx, req.NamespacedName, gateway); err != nil {
return kube_ctrl.Result{}, errors.Wrap(err, "unable to get Gateway")
}

if err := r.Client.Status().Update(ctx, gateway); err != nil {
return kube_ctrl.Result{}, errors.Wrap(err, "unable to update Gateway status")
}
Expand Down

0 comments on commit c9fa842

Please sign in to comment.