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

make necessary lib changes for k8s #413

Open
wants to merge 4 commits into
base: 6/edge
Choose a base branch
from
Open

Conversation

MiaAltieri
Copy link
Contributor

@MiaAltieri MiaAltieri commented May 7, 2024

Issue

MongoDB k8s charm does not support backups with current lib implementation

Solution

  1. add back in old version of libs
  2. make necessary changes to fix broken backups in k8s
  3. bump libpatch so new version is published

Easier diff

Diff of changes in last version of lib to new version can be found here

Why are you adding back in the old libapi?

The new LIBAPI introduces a breaking change by supporting sharding, old libs are used my the mongodb k8s charm. So in order to make those changes and publish them we must do so by adding them back to this repo

In the future (24.10) when we support sharding on MongoDB K8s charm we will remove these libs


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

Choose a reason for hiding this comment

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

> charmcraft fetch-lib charms.mongodb.v0.helpers
Library charms.mongodb.v0.helpers version 0.7 downloaded.

I think the version here should be 8, I think charmhub will complain if you try to skip a version when publishing.


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

Choose a reason for hiding this comment

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

> charmcraft fetch-lib charms.mongodb.v0.mongodb_backups
Library charms.mongodb.v0.mongodb_backups version 0.6 downloaded.

Like with the other lib, I think charm hub will complain for skipping a version. I guess we can publish manual versions to catch up if it does.

dragomirp
dragomirp previously approved these changes May 8, 2024
shayancanonical
shayancanonical previously approved these changes May 8, 2024
@MiaAltieri MiaAltieri dismissed stale reviews from shayancanonical and dragomirp via 34b52a6 May 8, 2024 12:31
@MiaAltieri MiaAltieri requested a review from dragomirp May 8, 2024 12:35
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.

4 participants