Skip to content

Commit 93930b7

Browse files
bug: failed to reflect pluginConfig delete to cache(#1439) (#1470)
1 parent 97e417b commit 93930b7

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

pkg/kube/translation/apisix_route.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -921,11 +921,6 @@ func (t *translator) translateOldRouteV2(ar *configv2.ApisixRoute) (*TranslateCo
921921
ups.ID = r.UpstreamId
922922
oldCtx.AddUpstream(ups)
923923
}
924-
if r.PluginConfigId != "" {
925-
pc := apisixv1.NewDefaultPluginConfig()
926-
pc.ID = r.PluginConfigId
927-
oldCtx.AddPluginConfig(pc)
928-
}
929924
oldCtx.AddRoute(r)
930925
}
931926
return oldCtx, nil
@@ -958,11 +953,6 @@ func (t *translator) translateOldRouteV2beta3(ar *configv2beta3.ApisixRoute) (*T
958953
ups.ID = r.UpstreamId
959954
oldCtx.AddUpstream(ups)
960955
}
961-
if r.PluginConfigId != "" {
962-
pc := apisixv1.NewDefaultPluginConfig()
963-
pc.ID = r.PluginConfigId
964-
oldCtx.AddPluginConfig(pc)
965-
}
966956
oldCtx.AddRoute(r)
967957
}
968958
return oldCtx, nil

0 commit comments

Comments
 (0)