Skip to content

Commit

Permalink
fix: ingress LB status records (apache#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
tao12345666333 authored and Sindweller committed Dec 18, 2021
1 parent c7e40b2 commit 4ee13e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/ingress/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ func (c *Controller) recordStatus(at interface{}, reason string, err error, stat

}

v.ObjectMeta.Generation = generation
v.Status.LoadBalancer.Ingress = lbips
if _, errRecord := kubeClient.NetworkingV1().Ingresses(v.Namespace).UpdateStatus(context.TODO(), v, metav1.UpdateOptions{}); errRecord != nil {
log.Errorw("failed to record status change for IngressV1",
Expand All @@ -201,6 +202,7 @@ func (c *Controller) recordStatus(at interface{}, reason string, err error, stat

}

v.ObjectMeta.Generation = generation
v.Status.LoadBalancer.Ingress = lbips
if _, errRecord := kubeClient.NetworkingV1beta1().Ingresses(v.Namespace).UpdateStatus(context.TODO(), v, metav1.UpdateOptions{}); errRecord != nil {
log.Errorw("failed to record status change for IngressV1",
Expand All @@ -219,6 +221,7 @@ func (c *Controller) recordStatus(at interface{}, reason string, err error, stat

}

v.ObjectMeta.Generation = generation
v.Status.LoadBalancer.Ingress = lbips
if _, errRecord := kubeClient.ExtensionsV1beta1().Ingresses(v.Namespace).UpdateStatus(context.TODO(), v, metav1.UpdateOptions{}); errRecord != nil {
log.Errorw("failed to record status change for IngressV1",
Expand Down

0 comments on commit 4ee13e8

Please sign in to comment.