This is an ingress controller that can be run on Azure Kubernetes Service (AKS) to allow an Azure Application Gateway to act as the ingress for an AKS cluster.
[x] If applicable, the changes made in the PR have proper test coverage
[x] Issues addressed by the PR are mentioned in the description followed by Fixes.
Description
AGIC creates dummy backend pool and backend http settings which are used referenced from request routing rule when linked service doesn't exists.
This PR cleans up these dummy resources by doing a post processing on the generated appgw config and finding the dummy resources which are not used and then removing them.
Checklist
Fixes
.Description
AGIC creates dummy backend pool and backend http settings which are used referenced from request routing rule when linked service doesn't exists.
This PR cleans up these dummy resources by doing a post processing on the generated appgw config and finding the dummy resources which are not used and then removing them.
E2E Tests passing:![image](https://github.com/Azure/application-gateway-kubernetes-ingress/assets/5294363/f5fcd7fe-df4c-449c-b8ef-19d2c21d5d09)
Fixes
Fixes #1466