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

rbd: pre-work for VolumeGroup support #4701

Merged
merged 4 commits into from
Jul 8, 2024
Merged

Conversation

nixpanic
Copy link
Member

@nixpanic nixpanic commented Jul 5, 2024

Describe what this PR does

Start defining a clean interface so that it will be easier to use the rbdImage/rbdVolume structs and their functions. The upcoming VolumeGroup interface will follow a similar principle, hopefully resulting in easier to maintain code.

Is there anything that requires special attention

The Volume interface is not used yet, in the future there will be a Manager interface that offers simple access to Volume and VolumeGroup objects. The Volume interface is not meant to be complete yet, it will get extended when there is a need for it (or when more cleanups are done).


Show available bot commands

These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:

  • /retest ci/centos/<job-name>: retest the <job-name> after unrelated
    failure (please report the failure too!)

In the future we'll introduce a more standard interface for objects like
Volumes and Snapshots. It is useful to have the context passed as 1st
argument to all functions of those objects, including their Destroy()
function.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
Signed-off-by: Niels de Vos <ndevos@ibm.com>
Renaming the `Delete()` function makes it easier to implement the
upcoming `Volume` interface.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
@mergify mergify bot added the component/rbd Issues related to RBD label Jul 5, 2024
@nixpanic nixpanic force-pushed the rbd/volume-type branch 2 times, most recently from 1512a59 to 398cefd Compare July 5, 2024 09:52
The Volume interface will make it easier to work with the rbdImage
struct, as the functions are cleaner defined. This benefits work that is
needed for VolumeGroups and other CSI-Addons procedures.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
@nixpanic nixpanic requested a review from a team July 5, 2024 12:03
@nixpanic nixpanic requested a review from a team July 8, 2024 07:19
@Madhu-1
Copy link
Collaborator

Madhu-1 commented Jul 8, 2024

@Mergifyio queue

Copy link
Contributor

mergify bot commented Jul 8, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 902946e

@mergify mergify bot added the ok-to-test Label to trigger E2E tests label Jul 8, 2024
@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.29

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.28

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.30

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/upgrade-tests-cephfs

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.29

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.28

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.30

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.28

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.29

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/upgrade-tests-rbd

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.27

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.30

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.27

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.27

@ceph-csi-bot ceph-csi-bot removed the ok-to-test Label to trigger E2E tests label Jul 8, 2024
@mergify mergify bot merged commit 902946e into ceph:devel Jul 8, 2024
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/rbd Issues related to RBD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants