Skip to content

Commit

Permalink
Use the returned value of ingressClient.Create
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior committed Oct 23, 2024
1 parent 59137f9 commit ef5c183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubernetes/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (k *IngressService) Ensure(ctx context.Context, id router.InstanceID, o rou
}

if isNew {
_, err = ingressClient.Create(ctx, ingress, metav1.CreateOptions{})
ingress, err = ingressClient.Create(ctx, ingress, metav1.CreateOptions{})
if err != nil {
setSpanError(span, err)
return err
Expand Down

0 comments on commit ef5c183

Please sign in to comment.