Skip to content

[DPE-3310] New DataPeer(Unit) objects handling Peer Relation Data (so far secrets only) #332

Closed
juditnovak wants to merge 4 commits into6/edgefrom
DPE-3310_data_platform_libs_peer_data
Closed

[DPE-3310] New DataPeer(Unit) objects handling Peer Relation Data (so far secrets only) #332
juditnovak wants to merge 4 commits into6/edgefrom
DPE-3310_data_platform_libs_peer_data

Conversation

@juditnovak
Copy link
Copy Markdown
Contributor

@juditnovak juditnovak commented Jan 11, 2024

Instead of implementing Peer Data interactions locally, we've introduced the same abstraction layer for Peer Relation Data as it was implemented for Cross-charm Relation data.

This can be used via the same interfaces as Cross-charm Relations Data interfaces (on the latter see https://discourse.canonical.com/t/data-platform-relation-interfaces-using-juju-secrets/2808).

So far we only benefitted of the new abstraction layer to access secret fields -- however ideally it could (should?) replace databag access equally, allowing for abstract Peer Relation Data access (as mandatory for Cross-charm).

NOTE: This solution is Juju 3.1.7 compatible (also with backwards compatibilty)

See the same code over Juju 3.1.7: #333

@github-actions github-actions Bot added the Libraries: OK The charm libs used are OK and in-sync label Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Libraries: OK The charm libs used are OK and in-sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants