-
Notifications
You must be signed in to change notification settings - Fork 0
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-3180] Share connection info with host application #13
Conversation
@@ -35,7 +35,7 @@ | |||
|
|||
# Increment this PATCH version before using `charmcraft publish-lib` or reset | |||
# to 0 if you are raising the major API version | |||
LIBPATCH = 5 | |||
LIBPATCH = 2 |
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.
ported file over from mongodb charm
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 6/edge #13 +/- ##
=========================================
Coverage ? 75.63%
=========================================
Files ? 3
Lines ? 238
Branches ? 0
=========================================
Hits ? 180
Misses ? 58
Partials ? 0 ☔ View full report in Codecov by Sentry. |
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.
Looks good! just 1 minor nit
src/config.py
Outdated
MONGOS_SOCKET_URI_FMT = ( | ||
"%2Fvar%2Fsnap%2Fcharmed-mongodb%2Fcommon%2Fvar%2Fmongodb-27018.sock" | ||
) |
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.
you can simplify this with the following:
from urllib.parse import quote
MONGOS_SOCKET_URI_FMT = quote(MONGOS_SOCKET, safe='')
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.
TIL!
f1e603e
Issue
application hosting the subordinate charm
mongos
does not receive its credentials for communicating with the sharded mongodb deployment