Skip to content

Commit

Permalink
bug: failed to reflect pluginConfig delete to cache(apache#1439)
Browse files Browse the repository at this point in the history
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
  • Loading branch information
tao12345666333 committed Nov 20, 2022
1 parent a288408 commit ddd59ba
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pkg/kube/translation/apisix_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -921,11 +921,6 @@ func (t *translator) translateOldRouteV2(ar *configv2.ApisixRoute) (*TranslateCo
ups.ID = r.UpstreamId
oldCtx.AddUpstream(ups)
}
if r.PluginConfigId != "" {
pc := apisixv1.NewDefaultPluginConfig()
pc.ID = r.PluginConfigId
oldCtx.AddPluginConfig(pc)
}
oldCtx.AddRoute(r)
}
return oldCtx, nil
Expand Down Expand Up @@ -958,11 +953,6 @@ func (t *translator) translateOldRouteV2beta3(ar *configv2beta3.ApisixRoute) (*T
ups.ID = r.UpstreamId
oldCtx.AddUpstream(ups)
}
if r.PluginConfigId != "" {
pc := apisixv1.NewDefaultPluginConfig()
pc.ID = r.PluginConfigId
oldCtx.AddPluginConfig(pc)
}
oldCtx.AddRoute(r)
}
return oldCtx, nil
Expand Down

0 comments on commit ddd59ba

Please sign in to comment.