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

chore: remove mysql relation to drop MariaDB support #207

Merged
merged 6 commits into from
Jul 9, 2024

Conversation

NohaIhab
Copy link
Contributor

@NohaIhab NohaIhab commented Jul 2, 2024

CKF 1.8 dropped support for MariaDB, which means the charm has to drop all the code that handles this relation.

Summary

  • Remove the mysql relation
  • Stop observing and remove event handlers from the charm code
  • Remove from integration tests
  • Remove from unit tests

@NohaIhab NohaIhab requested a review from a team as a code owner July 2, 2024 22:41
Copy link
Contributor

@orfeas-k orfeas-k left a comment

Choose a reason for hiding this comment

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

Should we also update the bundle.yaml files of the repo having mariadb?

charms/katib-db-manager/tests/integration/test_charm.py Outdated Show resolved Hide resolved
@NohaIhab
Copy link
Contributor Author

NohaIhab commented Jul 4, 2024

the CI is getting stuck at the end of tests execution, I filed #209 to investigate and fix it
this PR is now blocked on the CI

Copy link
Contributor

@DnPlas DnPlas left a comment

Choose a reason for hiding this comment

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

Thanks @NohaIhab, just a tiny comment, other than that LGTM. Thanks for removing this unnecessary thing!

bundle.yaml Outdated Show resolved Hide resolved
Copy link
Contributor

@DnPlas DnPlas left a comment

Choose a reason for hiding this comment

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

Thanks @NohaIhab ! I tested this by deploying the katib-db-manager charm form this PR and tried using the relation juju relate katib-db-manager:mysql <another charm> and I got:

ERROR application "katib-db-manager" has no "mysql" relation

which confirms the relation is not supported anymore.

Then I added the relational-db relation just to ensure that relation was not affected by this change and it works.

@NohaIhab NohaIhab merged commit d378a51 into main Jul 9, 2024
16 checks passed
@NohaIhab NohaIhab deleted the fix-remove-mysql-relation-drop-mariadb branch July 9, 2024 09:26
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

3 participants