Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 4 commits into
base: 6/edge
Choose a base branch
from

Conversation

juditnovak
Copy link
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant