-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: failed to reflect pluginConfig delete to cache: still in use #1412
Comments
If pluginconfig is still used, we should not delete it |
I see you describe the actual result. Can you describe the expected result? |
apisix-ingress-controller/pkg/ingress/apisix_route.go Lines 329 to 339 in 21f39e9
After the above code Expected resultApisixPluginConfig is not deleted when ApisixRoute or Ingress are updated and deleted |
I saw your PR #1413 want to fix v1.5 branch. But we should follow "upstream first", we should fix it in master branch. apisix-ingress-controller/pkg/providers/apisix/translation/apisix_route.go Lines 984 to 988 in 53f26c1
Could you open another PR to fix it (master branch)? Thanks |
Issue description
An exception occurs when ApisixPluginConfig is used by multiple ApisixRoute or Ingress
https://github.com/apache/apisix-ingress-controller/blob/v1.5.0/pkg/ingress/apisix_route.go#L329-L336
https://github.com/apache/apisix-ingress-controller/blob/v1.5.0/pkg/kube/translation/apisix_route.go#L924-L927
Environment
Version: 1.5.0
Git SHA: no-git-module
Go Version: go1.19.2
Building OS/Arch: linux/amd64
Running OS/Arch: linux/amd64
v1.18.4+k3s1
Minimal test code / Steps to reproduce
httpserver
andhttpserver2
Actual result
ApisixPluginConfig will be deleted when ApisixRoute or Ingress is updated and deleted
Error log
The text was updated successfully, but these errors were encountered: