canonical / traefik-route-k8s-operator

Configuration charm for traefik-k8s.
https://charmhub.io/traefik-route-k8s
Apache License 2.0
0 stars 3 forks source link

Add more guards around relation properties #17

Closed rbarry82 closed 1 year ago

rbarry82 commented 1 year ago

Even though we already guard for the truthiness of _relation in TraefikRouteRequirer, and iterate over each, it still seems to be possible for a Relation with no app property set to be retrieved. Add more guards around that, and explicitly clear the data on RelationBroken