This commit ensures the istio-pilot charm checks that the ingress routes dictionary it uses for reconciling VirtualServices from requirers is not empty and the relation data for the departing application is there before attempting to pop values during a RelationBroken event.
Fixes #423
Testing
Follow the steps to reproduce in #423 to ensure the issue is happening
Remove the charm and re-deploy it from this PR
Try the steps in #423 again and make sure there is no error
This commit ensures the istio-pilot charm checks that the ingress routes dictionary it uses for reconciling VirtualServices from requirers is not empty and the relation data for the departing application is there before attempting to pop values during a RelationBroken event.
Fixes #423
Testing