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

Add supported extra_user_roles to DatabaseProvides in data_interfaces #59

Open carlcsaposs-canonical opened 1 year ago

carlcsaposs-canonical commented 1 year ago

The database provider should specify the extra_user_roles that it supports and block the charm if a role is requested that it does not support

github-actions[bot] commented 1 year ago

https://warthogs.atlassian.net/browse/DPE-1922

taurus-forever commented 1 year ago

Example, we have changed mysqlrouter profile in some backward incompatible way => error on relation of all mysql charm with new mysql-router charm.

To avoid such issues, we should avoid backward incompatible changes and create mysqlrouter_v2 profile and use it in new mysql-router charm => old mysql should switch to blocked state, reporting "Unsupported profile mysqlrouter_v2 requested".