canonical / traefik-k8s-operator

This charmed operator automates the operational procedures of running Traefik, an open-source application proxy.
https://charmhub.io/traefik-k8s
Apache License 2.0
11 stars 21 forks source link

[traefik-route] There's no "route departed/broken" for TraefikRouteRequirer #345

Open mmkay opened 2 months ago

mmkay commented 2 months ago

Bug Description

Although TraefikRouteProvider has a data_removed event: https://github.com/canonical/traefik-k8s-operator/blob/main/lib/charms/traefik_route_k8s/v0/traefik_route.py#L126

TraefikRouteRequirer only declares a ready event: https://github.com/canonical/traefik-k8s-operator/blob/main/lib/charms/traefik_route_k8s/v0/traefik_route.py#L119

That causes charms that use traefik_route not to handle ingress removed/broken/lost events (example)

To Reproduce

.

Environment

Should be the same for all environments.

Relevant log output

.

Additional context

No response

mmkay commented 1 week ago

We could have a broken event that could make the API consistent.