canonical / data-platform-libs

A collection of charm libraries curated by the Data Platform Team
https://charmhub.io/data-platform-libs
Apache License 2.0
10 stars 9 forks source link

allow non-leader units receive database credentials #12

Closed delgod closed 2 years ago

delgod commented 2 years ago

Issue

Non-leader units are not receiving the database events emitted by the requires library. This way they cannot know when the database credentials are received.

Solution

Remove the checks about the unit being the leader and also move some data, like the diff (data field) and the alias fields to the unit databag (currently, they are part of the application databag).

Testing

Release Notes

MiaAltieri commented 2 years ago

to resolve failing lint see this issue