Skip to content

Commit

Permalink
fix: ingress LB status records (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
tao12345666333 authored Dec 8, 2021
1 parent 1b2bc34 commit fe4a824
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 fe4a824

Please sign in to comment.