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
9 stars 7 forks source link

[DPE-3325] Dynamically adding Peer Data Secrets (groped on-demand) #135

Open juditnovak opened 5 months ago

juditnovak commented 5 months ago

Most charms use a single secret on app, and another one on unit level. Therefore this was the functionality provided by the DataPeer and the DataPeerUnit interfaces.

This change is extending that behavior to what is only used by a few charms (Opensearch, Pgbouncer) allowing for multiple secrets on either level. The implemetation goes in a way, that new secret fields can also form new groups or be saved into an individual secret labelled after the key.