The config and access rules templates are not updated when kratos is related with oathkeeper, unless the kratos relation and its urls are available at the time Oathkeeper fires on-pebble-ready event.
We should add an event guard for relation-changed.
Bug Description
The config and access rules templates are not updated when kratos is related with oathkeeper, unless the kratos relation and its urls are available at the time Oathkeeper fires on-pebble-ready event. We should add an event guard for relation-changed.
To Reproduce
juju deploy oathkeeper
juju deploy kratos
juju relate oathkeeper kratos
It can also be observed with unit tests: Modify the unit test to emit the pebble ready event before the relation joins:
The templates are rendered with the default dummy values (
http://default-kratos-url/
).Environment
juju 3.1.5 microk8s 1.26
Relevant log output
Additional context
No response