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

K8SPSMDB-1109: Add filesystem storage support for backups/restores #1682

Merged
merged 11 commits into from
Nov 11, 2024

Conversation

egegunes
Copy link
Contributor

@egegunes egegunes commented Oct 22, 2024

K8SPSMDB-1109 Powered by Pull Request Badge

CHANGE DESCRIPTION

Problem:
Filesystem backups are not supported.

Solution:
We already had most of the required mechanisms to enable backups to filesystem. This PR just adds VolumeMounts to backup section, so user can configure their volumes in spec.replsets[].sidecarVolumes and mount them using spec.backups.volumeMounts.

CHECKLIST

Jira

  • Is the Jira ticket created and referenced properly?
  • Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
  • Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

  • Is an E2E test/test case added for the new feature/change?
  • Are unit tests added where appropriate?
  • Are OpenShift compare files changed for E2E tests (compare/*-oc.yml)?

Config/Logging/Testability

  • Are all needed new/changed options added to default YAML files?
  • Are all needed new/changed options added to the Helm Chart?
  • Did we add proper logging messages for operator actions?
  • Did we ensure compatibility with the previous version or cluster upgrade process?
  • Does the change support oldest and newest supported MongoDB version?
  • Does the change support oldest and newest supported Kubernetes version?

@pull-request-size pull-request-size bot added the size/XL 500-999 lines label Oct 22, 2024
compare_mongo_cmd "find" "myApp:myPass@${cluster}-rs0.${namespace}" "${find_prefix}" ".svc.cluster.local" "myApp" "test"
}


Copy link
Contributor

Choose a reason for hiding this comment

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

[shfmt] reported by reviewdog 🐶

Suggested change

@@ -990,6 +990,13 @@ spec:
required:
- credentialsSecret
type: object
filesystem:
Copy link
Collaborator

Choose a reason for hiding this comment

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

please update cr.yaml as well and please create helm PR :)

@egegunes egegunes marked this pull request as ready for review October 28, 2024 07:07
Copy link
Contributor

@inelpandzic inelpandzic left a comment

Choose a reason for hiding this comment

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

This looks good. Just pls add example to cr.yaml.

Comment on lines +48 to +50
nfs:
server: "nfs-service.storage.svc.cluster.local"
path: "/psmdb-some-name-rs0"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

do we have more parameters here that k8s supports?

inelpandzic
inelpandzic previously approved these changes Oct 30, 2024
@pull-request-size pull-request-size bot added size/XXL 1000+ lines and removed size/XL 500-999 lines labels Nov 7, 2024
@hors hors self-requested a review November 11, 2024 09:45
@hors hors merged commit 31adb35 into main Nov 11, 2024
16 of 17 checks passed
@hors hors deleted the K8SPSMDB-1109 branch November 11, 2024 09:45
@egegunes egegunes added this to the v1.19.0 milestone Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XXL 1000+ lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants