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

Instead of -new add -mig-xxxx to the end of the new pv names #1393

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

awels
Copy link
Contributor

@awels awels commented Oct 1, 2024

In order to support multiple migrations of the same PV we need to add a unique suffix to the end of the PV name when creating new PVs. The new suffix is '-mig-' + 4 character random string of letters. When migrating a PV that already has the suffix, we will remove the suffix and create a new one.

In order to support legacy plans and pvs if the suffix is -new we replace -new with -mig-xxxx for the new pv name.

relaxed the validation of pvs to only include pvs that are not being skipped in the plan. This allows for the original pv to still exist in the namespace.

Goes with migtools/mig-ui#1525 which modifies the UI to properly allow users to select the PVs and get feedback if their selection is valid or not.

In order to support multiple migrations of the same PV
we need to add a unique suffix to the end of the PV name
when creating new PVs. The new suffix is '-mig-' + 4 character
random string of letters. When migrating a PV that already
has the suffix, we will remove the suffix and create a new
one.

In order to support legacy plans and pvs if the suffix is
-new we replace -new with -mig-xxxx for the new pv name.

relaxed the validation of pvs to only include pvs that
are not being skipped in the plan. This allows for the
original pv to still exist in the namespace.

Signed-off-by: Alexander Wels <[email protected]>
@github-actions github-actions bot added the update-operator Requires updates to mig-operator CRDs / RBAC label Oct 1, 2024
@awels
Copy link
Contributor Author

awels commented Oct 8, 2024

/cc @dymurray If you could review?

@dymurray dymurray merged commit 0a6b9da into migtools:master Oct 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
update-operator Requires updates to mig-operator CRDs / RBAC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants