Skip to content

Commit

Permalink
fix: ApisixPluginConfig shouldn't be deleted when ar or au be deleted. (
Browse files Browse the repository at this point in the history
  • Loading branch information
dickens7 authored Nov 10, 2022
1 parent 6f83da5 commit d43fd97
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pkg/providers/apisix/translation/apisix_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -983,11 +983,6 @@ func (t *translator) translateOldRouteV2(ar *configv2.ApisixRoute) (*translation
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 @@ -1020,11 +1015,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 d43fd97

Please sign in to comment.