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

Allow for CSI provisioned volume or storage class as source #42

Merged
merged 2 commits into from
Jan 18, 2023

Conversation

emosbaugh
Copy link
Contributor

I understand it is not the intention of the project as clearly stated in the readme, but I found with this small change it is possible to migrate from CSI to CSI volumes.

Our use case is migrating from a flex driver storage class, to a temporary csi storage class, deleting the flex storage class, and migrating to a csi storage class with the same name as the original flex storage class.

@emosbaugh emosbaugh changed the title Allow for CSI provisioner storage class as source Allow for CSI provisioned volume or storage class as source Jan 13, 2023
return fmt.Errorf("failed to update ReclaimPolicy for PV object %s: %v", pvc.Spec.VolumeName, err)
}

// retrieve and validate the volume name before starting the migration
Copy link
Contributor Author

@emosbaugh emosbaugh Jan 13, 2023

Choose a reason for hiding this comment

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

i've reordered this to validate prior to mutating the resource

Copy link
Collaborator

@Madhu-1 Madhu-1 left a comment

Choose a reason for hiding this comment

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

@emosbaugh changes LGTM, update the readme for this support?

@emosbaugh
Copy link
Contributor Author

@emosbaugh changes LGTM, update the readme for this support?

added documentation to the readme

@subhamkrai
Copy link
Collaborator

let's wait for #43 before merging

@subhamkrai subhamkrai requested a review from Madhu-1 January 18, 2023 06:45
@subhamkrai
Copy link
Collaborator

@emosbaugh can you please just rebase on top of main, we just fix the ci after that we'll good to merge the pr

@emosbaugh
Copy link
Contributor Author

@emosbaugh can you please just rebase on top of main, we just fix the ci after that we'll good to merge the pr

rebased

@subhamkrai subhamkrai merged commit 12dc5b1 into ceph:main Jan 18, 2023
@emosbaugh emosbaugh mentioned this pull request Feb 10, 2023
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.

3 participants