This is an automated email from the ASF dual-hosted git repository.
zhangjintao pushed a commit to branch v1.5.0
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git
The following commit(s) were added to refs/heads/v1.5.0 by this push:
new 93930b7b bug: failed to reflect pluginConfig delete to cache(#1439)
(#1470)
93930b7b is described below
commit 93930b7b2e2c3cb465d303194abb40c66405ed6a
Author: Jintao Zhang <[email protected]>
AuthorDate: Mon Nov 21 10:40:41 2022 +0800
bug: failed to reflect pluginConfig delete to cache(#1439) (#1470)
---
pkg/kube/translation/apisix_route.go | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/pkg/kube/translation/apisix_route.go
b/pkg/kube/translation/apisix_route.go
index 379bbbe0..ed8008be 100644
--- a/pkg/kube/translation/apisix_route.go
+++ b/pkg/kube/translation/apisix_route.go
@@ -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
@@ -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