Skip to content

Commit

Permalink
feat: route controller update bug
Browse files Browse the repository at this point in the history
  • Loading branch information
neverCase committed Dec 28, 2021
1 parent 291d10c commit e23bda8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ingress/apisix_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func (c *apisixRouteController) sync(ctx context.Context, ev *types.Event) error
case kube.ApisixRouteV2beta2:
oldCtx, err = c.controller.translator.TranslateRouteV2beta2(obj.OldObject.V2beta2())
case kube.ApisixRouteV2beta3:
if replaced, err = c.replacePluginNameWithIdIfNotEmptyV2beta3(ctx, ar.V2beta3()); err == nil {
if replaced, err = c.replacePluginNameWithIdIfNotEmptyV2beta3(ctx, obj.OldObject.V2beta3()); err == nil {
oldCtx, err = c.controller.translator.TranslateRouteV2beta3(replaced)
}
}
Expand Down

0 comments on commit e23bda8

Please sign in to comment.