[DPE-6468] feat: add connect_client data interface#226
[DPE-6468] feat: add connect_client data interface#226james-garner-canonical merged 10 commits intocanonical:mainfrom
Conversation
There was a problem hiding this comment.
It looks appropriate on the business logic, although we should probably add two things:
- Add which fields are passed as secrets
- Add the optional fields for tls, as for the other client interfaces (e.g. kafka, mysql, etc)
You can probably take some inspiration from zookeeper interface
But then it would probably be sensible for either @jnsgruk, @simskij or @gruyaume to give a +1
|
Thanks @deusebio, I've applied the changes to adapt this interface to the secrets exchange logic we have already implemented in |
|
@imanenami sorry for leaving this pr hanging for so long. is this still something you are looking to get merged? |
|
Hi @simskij, yes I would appreciate if it could get merged. Thanks! |
There was a problem hiding this comment.
Apologies for the massive delay in reviewing this PR.
The only thing I'd really like to see before merging is: if there's a library for this interface, please mention it in the readme -- if there isn't, mention that instead, e.g. "there is no library for this interface, charms should implement the provider/requirer logic directly".
I'm assuming that this interface is already in use, otherwise I would suggest using a JSON serialized list for ConnectProviderData.endpoints, and making ConnectRequirerData optional (or use None / null as the sentinel value).
It would be great to see interface tests added (readme, example) for this interface. No need to block merging this PR for them though, they can be done separately -- but if you want to add them in this PR that's definitely fine.
|
Hi @imanenami, we're moving towards archiving this repo very soon, however interface specifications live on in the
|
|
Looks like you'll need to run |
|
Thanks @imanenami! |
Changes:
This pull request introduces
connect_clientinterface adhering to the__template__interface definition.