-
Notifications
You must be signed in to change notification settings - Fork 55
bash script to migrate standalone pvs/pvcs to a new volumePath #1365
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
base: dev
Are you sure you want to change the base?
Conversation
Signed-off-by: badri-pathak <[email protected]>
Signed-off-by: badri-pathak <[email protected]>
Signed-off-by: badri-pathak <[email protected]>
Signed-off-by: badri-pathak <[email protected]>
Signed-off-by: badri-pathak <[email protected]>
Signed-off-by: badri-pathak <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@badri-pathak I am adding my suggestions here :
if user give path with / in end as mount path consider /var/mnt/ instead of /var, will it impact CSI operations as volume handle path will be /var/mnt//
I was trying this script on 4 pvcs of version 1 independent -> source pvc , clone , restored pvc and shallow volume
|
Pull request checklist
The script is going to handle the feature request of the following EPIC and Stories
[Story] Bash script to migrate PVC's from standalone CSI to CNSA in vanilla kubernetes for version-1 volumes
[Epic] Handle existing volume migration due to primaryfs removal in CSI 3.0.0
[Epic] Enable PVC Migration from CSI Standalone to CNSA Deployment in Vanilla Kubernetes
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
This format is specific to the standalone CSI deployment.
What is the new behavior?
Migration Script
A helper script is provided to automate this PV migration:
This script updates the volumeHandle values in PV definitions and re-creates the associated PVCs to be compatible with CNSA-based/New CSI setup deployments.
Features of the Migration Script:
Note/Limitation
How risky is this change?