-
Notifications
You must be signed in to change notification settings - Fork 14
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) -- Juju 3.1.7 #333
base: 6/edge
Are you sure you want to change the base?
Conversation
|
...furthermore you may wanna evaluate if this is your preferred choice, or rather the "dyamic secret creation". (See Peer Realtoin Data Spec ) I can give you more insight to pros and cons. |
additional_secret_fields=[ | ||
"backup-password", | ||
"operator-password", | ||
"monitor-password", | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will not need this in the new version. Dynamically introduce the name of the secrets when we set them
additional_secret_fields=[ | ||
"ca-secret", | ||
"key-secret", | ||
"cert-secret", | ||
"csr-secret", | ||
"chain-secret", | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also dont need this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO MongoDB Team:
- update data plaform libs
- resolve merge conflicts
- make these changes
- see if it works
- see what can merged into one lib
- verify with Judit
- update across all charms
|
||
label = None | ||
if scope == APP_SCOPE: | ||
self.peer_relation_app.update_relation_data(peers.id, {key: value}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
both update_relation_data([...])
with set_secret(peer.id, key,value)
- like in postgres charm
The same code as #332, running on Juju 3.1.7