Closed dickens7 closed 1 year ago
If pluginconfig is still used, we should not delete it
I see you describe the actual result. Can you describe the expected result?
After the above code m.Diff(om)
is executed, deleted.PluginConfigs is not empty;
ApisixPluginConfig 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.
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
Minimal test code / Steps to reproduce
httpserver
andhttpserver2
Actual result
ApisixPluginConfig will be deleted when ApisixRoute or Ingress is updated and deleted
Error log