canonical / traefik-route-k8s-operator

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

Forward the external_host through TraefikRoute #14

Closed rbarry82 closed 2 years ago

rbarry82 commented 2 years ago

Previously, TraefikRouteProvider did not send any information back to TraefikRouteRequirer, including the external_host Traefik may be bound to, so the Requirer has no way of knowing (inside the Juju data/permissions model) what external address it could be reachable on.

Now, TraefikRouteProvider keeps the "known" external_host in StoredState, and checks traefik-k8s's external_host property at instantiation. If it differs, it writes this to relation data, and an event is fired from the Provider, so the charm which has provided the configuration can read an external_host property.