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

Skip database creation for mysqlrouter extra user role #210

Merged
merged 2 commits into from
May 18, 2023

Conversation

carlcsaposs-canonical
Copy link
Contributor

@codecov
Copy link

codecov bot commented May 15, 2023

Codecov Report

Merging #210 (d65a107) into main (81adb5a) will decrease coverage by 0.07%.
The diff coverage is 60.00%.

@@            Coverage Diff             @@
##             main     #210      +/-   ##
==========================================
- Coverage   65.40%   65.34%   -0.07%     
==========================================
  Files          12       12              
  Lines        2139     2141       +2     
  Branches      269      270       +1     
==========================================
  Hits         1399     1399              
- Misses        654      655       +1     
- Partials       86       87       +1     
Impacted Files Coverage Δ
src/relations/mysql_provider.py 48.20% <50.00%> (-0.35%) ⬇️
lib/charms/mysql/v0/mysql.py 78.20% <66.66%> (-0.15%) ⬇️

@@ -90,7 +90,7 @@ def wait_until_mysql_connection(self) -> None:

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 26
LIBPATCH = 28
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this libpatch be 27 instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

preemptively bumped it for #208

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect CI will fail if you try to release LIBPATCH = 27 after merging this LIBPATCH = 28 (also, AFAIK charmcraft will refuse to upload the library with gap in LIBPATCH). I could be wrong.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes my plan was to merge #208 first

Copy link
Contributor

@taurus-forever taurus-forever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, one question.

Comment on lines +229 to +230
# TODO:
# add setup of tls, tls_ca and status
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JFMI, is it still topical? mysql-router-k8s supports TLS since the last sprint AFAIK, mysql-router is subordinate == no TLS.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure—also this is the mysql charm, not the mysql router charm

@@ -90,7 +90,7 @@ def wait_until_mysql_connection(self) -> None:

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 26
LIBPATCH = 28
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect CI will fail if you try to release LIBPATCH = 27 after merging this LIBPATCH = 28 (also, AFAIK charmcraft will refuse to upload the library with gap in LIBPATCH). I could be wrong.

@carlcsaposs-canonical carlcsaposs-canonical merged commit 66db346 into main May 18, 2023
@carlcsaposs-canonical carlcsaposs-canonical deleted the mysqlrouter-role branch May 18, 2023 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants